| javax.lang.model.util.SimpleTypeVisitor6
SimpleTypeVisitor6 | public class SimpleTypeVisitor6 extends AbstractTypeVisitor6 (Code) | | A simple visitor of types with default behavior appropriate for the
SourceVersion.RELEASE_6 RELEASE_6 source version.
Visit methods corresponding to
RELEASE_6 language
constructs call
SimpleTypeVisitor6.defaultAction , passing their arguments to
defaultAction 's corresponding parameters.
Methods in this class may be overridden subject to their
general contract. Note that annotating methods in concrete
subclasses with
java.lang.Override @Override will help
ensure that methods are overridden as intended.
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 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 call the
SimpleTypeVisitor6.visitUnknown 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 the new visitor is introduced, all
or portions of this visitor may be deprecated.
< Parameters: R - > the return type of this visitor's methods. Use Void for visitors that do not need to return results.< Parameters: P - > the type of the additional parameter to this visitor'smethods. Use Void for visitors that do not need anadditional parameter. author: Joseph D. Darcy author: Scott Seligman author: Peter von der Ahé version: 1.13 07/05/05 since: 1.6 |
Constructor Summary | |
protected | SimpleTypeVisitor6() Constructor for concrete subclasses; uses
null for the
default value. | protected | SimpleTypeVisitor6(R defaultValue) Constructor for concrete subclasses; uses the argument for the
default value. |
Method Summary | |
protected R | defaultAction(TypeMirror e, P p) The default action for visit methods. | public R | visitArray(ArrayType t, P p) This implementation calls
defaultAction . | public R | visitDeclared(DeclaredType t, P p) This implementation calls
defaultAction . | public R | visitError(ErrorType t, P p) This implementation calls
defaultAction . | public R | visitExecutable(ExecutableType t, P p) This implementation calls
defaultAction . | public R | visitNoType(NoType t, P p) This implementation calls
defaultAction . | public R | visitNull(NullType t, P p) This implementation calls
defaultAction . | public R | visitPrimitive(PrimitiveType t, P p) This implementation calls
defaultAction . | public R | visitTypeVariable(TypeVariable t, P p) This implementation calls
defaultAction . | public R | visitWildcard(WildcardType t, P p) This implementation calls
defaultAction . |
SimpleTypeVisitor6 | protected SimpleTypeVisitor6()(Code) | | Constructor for concrete subclasses; uses
null for the
default value.
|
SimpleTypeVisitor6 | protected SimpleTypeVisitor6(R defaultValue)(Code) | | Constructor for concrete subclasses; uses the argument for the
default value.
Parameters: defaultValue - the value to assign to SimpleTypeVisitor6.DEFAULT_VALUE |
visitArray | public R visitArray(ArrayType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitDeclared | public R visitDeclared(DeclaredType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitError | public R visitError(ErrorType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitExecutable | public R visitExecutable(ExecutableType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitNoType | public R visitNoType(NoType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitNull | public R visitNull(NullType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitPrimitive | public R visitPrimitive(PrimitiveType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitTypeVariable | public R visitTypeVariable(TypeVariable t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
visitWildcard | public R visitWildcard(WildcardType t, P p)(Code) | | This implementation calls
defaultAction .
Parameters: t - Parameters: p - the result of defaultAction |
|
|