Void for visitors that do not need to return results.
Void for visitors that do not need an
additional parameter.
RELEASE_6 source version.
Visit methods corresponding to RELEASE_6 language
constructs call defaultAction, passing their
arguments to defaultAction's corresponding parameters.
For constructs introduced in RELEASE_7 and later, visitUnknown is called instead.
API Note
Methods in this class may be overridden subject to their general contract.
WARNING: The TypeVisitor interface implemented by this class may have methods
added to it in the future to accommodate new, currently unknown,
language structures added to future versions of the Java
programming language. Therefore, methods whose names begin with
"visit" may be added to this class in the future; to avoid
incompatibilities, classes and subclasses which extend this class
should not declare any instance methods with names beginning with
"visit".
When such a new visit method is added, the default
implementation in this class will be to directly or indirectly call
the visitUnknown method. A new simple type
visitor class will also be introduced to correspond to the new
language level; this visitor will have different default behavior
for the visit method in question. When a new visitor is
introduced, portions of this visitor class may be deprecated,
including its constructors.
SimpleTypeVisitor7, SimpleTypeVisitor8, SimpleTypeVisitor9, SimpleTypeVisitor14
| Modifier and Type | Field and Description |
|---|---|
| protected final R | DEFAULT_VALUE
Default value to be returned; |
| Access | Constructor and Description |
|---|---|
| protected | SimpleTypeVisitor6()
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses; uses |
| protected | SimpleTypeVisitor6(R
the value to assign to defaultValue)DEFAULT_VALUE
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses; uses the argument for the default value. |
| Modifier and Type | Method and Description |
|---|---|
| protected R | Returns: DEFAULT_VALUE unless overriddenthe type to process t, P a visitor-specified parameter p)The default action for visit methods. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits an array type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits a declared type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits an error type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits an executable type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits a |
| public R | Returns: the result ofdefaultActionImplements javax. Visits the null type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits a primitive type. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits a type variable. |
| public R | Returns: the result ofdefaultActionImplements javax. Visits a wildcard type. |
| DEFAULT_VALUE | back to summary |
|---|---|
| protected final R DEFAULT_VALUE Default value to be returned; | |
| SimpleTypeVisitor6 | back to summary |
|---|---|
| protected SimpleTypeVisitor6()
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses; uses
| |
| SimpleTypeVisitor6 | back to summary |
|---|---|
| protected SimpleTypeVisitor6(R defaultValue)
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses; uses the argument for the default value.
| |
| defaultAction | back to summary |
|---|---|
| protected R defaultAction(TypeMirror t, P p) The default action for visit methods. Implementation Specification The implementation in this class just returns
| |
| visitArray | back to summary |
|---|---|
| public R visitArray(ArrayType t, P p) Implements javax. Doc from javax. Visits an array type. Implementation Specification This implementation calls
| |
| visitDeclared | back to summary |
|---|---|
| public R visitDeclared(DeclaredType t, P p) Implements javax. Doc from javax. Visits a declared type. Implementation Specification This implementation calls
| |
| visitError | back to summary |
|---|---|
| public R visitError(ErrorType t, P p) Implements javax. Doc from javax. Visits an error type. Implementation Specification This implementation calls
| |
| visitExecutable | back to summary |
|---|---|
| public R visitExecutable(ExecutableType t, P p) Implements javax. Doc from javax. Visits an executable type. Implementation Specification This implementation calls
| |
| visitNoType | back to summary |
|---|---|
| public R visitNoType(NoType t, P p) Implements javax. Doc from javax. Visits a Implementation Specification This implementation calls
| |
| visitNull | back to summary |
|---|---|
| public R visitNull(NullType t, P p) Implements javax. Doc from javax. Visits the null type. Implementation Specification This implementation calls
| |
| visitPrimitive | back to summary |
|---|---|
| public R visitPrimitive(PrimitiveType t, P p) Implements javax. Doc from javax. Visits a primitive type. Implementation Specification This implementation calls
| |
| visitTypeVariable | back to summary |
|---|---|
| public R visitTypeVariable(TypeVariable t, P p) Implements javax. Doc from javax. Visits a type variable. Implementation Specification This implementation calls
| |
| visitWildcard | back to summary |
|---|---|
| public R visitWildcard(WildcardType t, P p) Implements javax. Doc from javax. Visits a wildcard type. Implementation Specification This implementation calls
| |