|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotatedTypeVisitor<R,P>
A Visitor class of annotated types, in the style of the visitor design pattern. A visitor of types, in the style of the visitor design pattern. Classes implementing this interface are used to operate on a type when the kind of type is unknown at compile time. When a visitor is passed to a type's accept method, the visitXYZ method most applicable to that type is invoked. Classes implementing this interface may or may not throw a NullPointerException if the additional parameter p is null; see documentation of the implementing class for details.
Modifier and Type | Method and Description |
---|---|
R |
visit(AnnotatedTypeMirror type)
A Convenience method equivalent to v.visit(t, null) . |
R |
visit(AnnotatedTypeMirror type,
P p)
Visits a type. |
R |
visitArray(AnnotatedTypeMirror.AnnotatedArrayType type,
P p)
Visits an array type. |
R |
visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type,
P p)
Visits a declared type. |
R |
visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type,
P p)
Visits an executable type. |
R |
visitNoType(AnnotatedTypeMirror.AnnotatedNoType type,
P p)
Visits NoType type. |
R |
visitNull(AnnotatedTypeMirror.AnnotatedNullType type,
P p)
Visits a null type. |
R |
visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type,
P p)
Visits a primitive type. |
R |
visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type,
P p)
Visits a type variable. |
R |
visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type,
P p)
Visits a wildcard type. |
Method Detail |
---|
R visit(AnnotatedTypeMirror type)
v.visit(t, null)
.
type
- the type to visitR visit(AnnotatedTypeMirror type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitArray(AnnotatedTypeMirror.AnnotatedArrayType type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitNoType(AnnotatedTypeMirror.AnnotatedNoType type, P p)
type
- the type to visitp
- a visitor-specified parameterR visitNull(AnnotatedTypeMirror.AnnotatedNullType type, P p)
null
type.
type
- the type to visitp
- a visitor-specified parameterR visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, P p)
type
- the type to visitp
- a visitor-specified parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |