- Type Parameters:
R
- the visitor's return type.P
- the visitor's parameter type.
- Enclosing interface:
Type
public static interface Type.Visitor<R,P>
Type visitor interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault R
visitArray
(Type.Array t, P p) Visit an array type.default R
visitDeclared
(Type.Declared t, P p) Visit a declared type.default R
visitDelegated
(Type.Delegated t, P p) Visit a delegated type.default R
visitFunction
(Type.Function t, P p) Visit a function type.default R
visitPrimitive
(Type.Primitive t, P p) Visit a primitive type.default R
Visit a type.
-
Method Details
-
visitPrimitive
Visit a primitive type.- Parameters:
t
- the primitive type.p
- the visitor parameter.- Returns:
- the result of visiting the given primitive type through this visitor object.
-
visitFunction
Visit a function type.- Parameters:
t
- the function type.p
- the visitor parameter.- Returns:
- the result of visiting the given function type through this visitor object.
-
visitDeclared
Visit a declared type.- Parameters:
t
- the declared type.p
- the visitor parameter.- Returns:
- the result of visiting the given declared type through this visitor object.
-
visitDelegated
Visit a delegated type.- Parameters:
t
- the delegated type.p
- the visitor parameter.- Returns:
- the result of visiting the given delegated type through this visitor object.
-
visitArray
Visit an array type.- Parameters:
t
- the array type.p
- the visitor parameter.- Returns:
- the result of visiting the given array type through this visitor object.
-
visitType
Visit a type.- Parameters:
t
- the type.p
- the visitor parameter.- Returns:
- the result of visiting the given type through this visitor object.
-