Interface Declaration.Visitor<R,P>

Type Parameters:
R - the visitor's return type.
P - the visitor's parameter type.
Enclosing interface:
Declaration

public static interface Declaration.Visitor<R,P>
Declaration visitor interface.
  • Method Details

    • visitScoped

      default R visitScoped(Declaration.Scoped d, P p)
      Visit a scoped declaration.
      Parameters:
      d - the scoped declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given scoped declaration through this visitor object.
    • visitFunction

      default R visitFunction(Declaration.Function d, P p)
      Visit a function declaration.
      Parameters:
      d - the function declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given function declaration through this visitor object.
    • visitVariable

      default R visitVariable(Declaration.Variable d, P p)
      Visit a variable declaration.
      Parameters:
      d - the variable declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given variable declaration through this visitor object.
    • visitConstant

      default R visitConstant(Declaration.Constant d, P p)
      Visit a constant declaration.
      Parameters:
      d - the constant declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given constant declaration through this visitor object.
    • visitTypedef

      default R visitTypedef(Declaration.Typedef d, P p)
      Visit a typedef declaration.
      Parameters:
      d - the typedef declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given typedef declaration through this visitor object.
    • visitDeclaration

      default R visitDeclaration(Declaration d, P p)
      Visit a declaration.
      Parameters:
      d - the declaration.
      p - the visitor parameter.
      Returns:
      the result of visiting the given declaration through this visitor object.