| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public abstract class AbstractTypeVisitor6 extends Object implements TypeVisitor
A skeletal visitor of types with default behavior appropriate for the version 6 language level.
WARNING: The {@code 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 {@code "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 {@code "visit"}.
When such a new visit method is added, the default implementation in this class will be to call the {@link #visitUnknown visitUnknown} method. A new abstract 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.
Constructor Summary | |
---|---|
protected |
Constructor for concrete subclasses to call. |
Method Summary | |
---|---|
Object |
visit(TypeMirror t) Visits any type mirror as if by passing itself to that type mirror's javax.lang.model.type.TypeMirror.accept method and passing for the additional parameter. |
Object |
visit(TypeMirror t, Object p) Visits any type mirror as if by passing itself to that type mirror's javax.lang.model.type.TypeMirror.accept method. |
Object |
visitUnknown(TypeMirror t, Object p) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractTypeVisitor6()
Method Detail |
---|
public final Object visit(TypeMirror t)
t
- the type to visitpublic final Object visit(TypeMirror t, Object p)
t
- the type to visitp
- a visitor-specified parameterpublic Object visitUnknown(TypeMirror t, Object p)
The default implementation of this method in {@code AbstractTypeVisitor6} will always throw {@code UnknownTypeException}. This behavior is not required of a subclass.
t
- the type to visitp
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |