R - the return type of this visitor's methods. Use Void for visitors that do not
need to return results.P - the type of the additional parameter to this visitor's methods. Use Void for
visitors that do not need an additional parameter.public abstract class SimpleAnnotatedTypeVisitor<R,P> extends Object implements AnnotatedTypeVisitor<R,P>
AnnotatedTypeMirrors.| Modifier and Type | Field and Description |
|---|---|
protected R |
DEFAULT_VALUE
The default value to return as a default action.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleAnnotatedTypeVisitor()
Creates an instance of
SimpleAnnotatedTypeVisitor with default value being null. |
protected |
SimpleAnnotatedTypeVisitor(R defaultValue)
Creates an instance of
SimpleAnnotatedTypeVisitor with the default value being the
passed defaultValue. |
protected final R DEFAULT_VALUE
protected SimpleAnnotatedTypeVisitor()
SimpleAnnotatedTypeVisitor with default value being null.protected SimpleAnnotatedTypeVisitor(R defaultValue)
SimpleAnnotatedTypeVisitor with the default value being the
passed defaultValue.defaultValue - the default value this class should returnprotected R defaultAction(AnnotatedTypeMirror type, P p)
This implementation merely returns the default value (as specified by the protected field
DEFAULT_VALUE).
public R visit(AnnotatedTypeMirror type)
AnnotatedTypeVisitorv.visit(t, null).visit in interface AnnotatedTypeVisitor<R,P>type - the type to visitpublic R visit(AnnotatedTypeMirror type, P p)
AnnotatedTypeVisitorvisit in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, P p)
AnnotatedTypeVisitorvisitDeclared in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitIntersection(AnnotatedTypeMirror.AnnotatedIntersectionType type, P p)
AnnotatedTypeVisitorvisitIntersection in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitUnion(AnnotatedTypeMirror.AnnotatedUnionType type, P p)
AnnotatedTypeVisitorvisitUnion in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitArray(AnnotatedTypeMirror.AnnotatedArrayType type, P p)
AnnotatedTypeVisitorvisitArray in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type, P p)
AnnotatedTypeVisitorvisitExecutable in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, P p)
AnnotatedTypeVisitorvisitTypeVariable in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, P p)
AnnotatedTypeVisitorvisitWildcard in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type, P p)
AnnotatedTypeVisitorvisitPrimitive in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitNull(AnnotatedTypeMirror.AnnotatedNullType type, P p)
AnnotatedTypeVisitornull type.visitNull in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameterpublic R visitNoType(AnnotatedTypeMirror.AnnotatedNoType type, P p)
AnnotatedTypeVisitorvisitNoType in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter