Interface Type.Visitor<R,P>

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 Details

    • visitPrimitive

      default R visitPrimitive(Type.Primitive t, P p)
      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

      default R visitFunction(Type.Function t, P p)
      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

      default R visitDeclared(Type.Declared t, P p)
      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

      default R visitDelegated(Type.Delegated t, P p)
      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

      default R visitArray(Type.Array t, P p)
      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

      default R visitType(Type t, P p)
      Visit a type.
      Parameters:
      t - the type.
      p - the visitor parameter.
      Returns:
      the result of visiting the given type through this visitor object.