|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcheckers.types.visitors.SimpleAnnotatedTypeVisitor<R,P>
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 class SimpleAnnotatedTypeVisitor<R,P>
A simple visitor for AnnotatedTypeMirrors.
| Field Summary | |
|---|---|
protected R |
DEFAULT_VALUE
The default value to return as a default action |
| Constructor Summary | |
|---|---|
SimpleAnnotatedTypeVisitor()
Creates an instance of SimpleAnnotatedTypeVisitor with
default value being null |
|
SimpleAnnotatedTypeVisitor(R defaultValue)
Creates an instance of SimpleAnnotatedTypeVisitor with
the default value being the passed defaultValue |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final R DEFAULT_VALUE
| Constructor Detail |
|---|
public SimpleAnnotatedTypeVisitor()
SimpleAnnotatedTypeVisitor with
default value being null
public SimpleAnnotatedTypeVisitor(R defaultValue)
SimpleAnnotatedTypeVisitor with
the default value being the passed defaultValue
defaultValue - the default value this class should return| Method Detail |
|---|
protected R defaultAction(AnnotatedTypeMirror type,
P p)
DEFAULT_VALUE).
public R visit(AnnotatedTypeMirror type)
AnnotatedTypeVisitorv.visit(t, null).
visit in interface AnnotatedTypeVisitor<R,P>type - the type to visit
public R visit(AnnotatedTypeMirror type,
P p)
AnnotatedTypeVisitor
visit in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type,
P p)
AnnotatedTypeVisitor
visitDeclared in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitArray(AnnotatedTypeMirror.AnnotatedArrayType type,
P p)
AnnotatedTypeVisitor
visitArray in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type,
P p)
AnnotatedTypeVisitor
visitExecutable in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type,
P p)
AnnotatedTypeVisitor
visitTypeVariable in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type,
P p)
AnnotatedTypeVisitor
visitWildcard in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type,
P p)
AnnotatedTypeVisitor
visitPrimitive in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitNull(AnnotatedTypeMirror.AnnotatedNullType type,
P p)
AnnotatedTypeVisitornull type.
visitNull in interface AnnotatedTypeVisitor<R,P>type - the type to visitp - a visitor-specified parameter
public R visitNoType(AnnotatedTypeMirror.AnnotatedNoType type,
P p)
AnnotatedTypeVisitor
visitNoType in interface AnnotatedTypeVisitor<R,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 | ||||||||