- 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 Summary
Modifier and TypeMethodDescriptiondefault R
Visit a constant declaration.default R
visitDeclaration
(Declaration d, P p) Visit a declaration.default R
Visit a function declaration.default R
visitScoped
(Declaration.Scoped d, P p) Visit a scoped declaration.default R
visitTypedef
(Declaration.Typedef d, P p) Visit a typedef declaration.default R
Visit a variable declaration.
-
Method Details
-
visitScoped
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
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
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
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
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
Visit a declaration.- Parameters:
d
- the declaration.p
- the visitor parameter.- Returns:
- the result of visiting the given declaration through this visitor object.
-