Void for visitors that do not need to return results.
Void for visitors that do not need an
additional parameter.
RELEASE_6 source version. For types Xyz that may have more than one
kind, the visitXyz methods in this class delegate
to the visitXyzAsKind method corresponding to the
first argument's kind. The visitXyzAsKind methods
call defaultAction, passing their arguments
to defaultAction's corresponding parameters.
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 or the TypeKind enum used in this
class may have constants 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 type kind
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.
TypeKindVisitor7, TypeKindVisitor8, TypeKindVisitor9, TypeKindVisitor14
| Access | Constructor and Description |
|---|---|
| protected | TypeKindVisitor6()
Deprecated
since 9. Release 6 is obsolete; update to a visitor for a newer
release level.
Constructor for concrete subclasses to call; uses |
| protected | TypeKindVisitor6(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 to call; uses the argument for the default value. |
| Modifier and Type | Method and Description |
|---|---|
| public R | Returns: the result of the kind-specific visit methodOverrides javax. Implements javax. Visits a |
| public R | Returns: the result ofvisitUnknownthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result of the kind-specific visit methodOverrides javax. Implements javax. Visits a primitive type. |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits an |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| public R | Returns: the result ofdefaultActionthe type to visit t, P a visitor-specified parameter p)Visits a |
| TypeKindVisitor6 | back to summary |
|---|---|
| protected TypeKindVisitor6()
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses to call; uses
| |
| TypeKindVisitor6 | back to summary |
|---|---|
| protected TypeKindVisitor6(R defaultValue)
Deprecated since 9. Release 6 is obsolete; update to a visitor for a newer release level. Constructor for concrete subclasses to call; uses the argument for the default value.
| |
| visitNoType | back to summary |
|---|---|
| public R visitNoType(NoType t, P p) Overrides javax. Implements javax. Doc from javax. Visits a Implementation Specification This implementation dispatches to the visit method for
the specific kind of pseudo-type:
| |
| visitNoTypeAsModule | back to summary |
|---|---|
| public R visitNoTypeAsModule(NoType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitNoTypeAsNone | back to summary |
|---|---|
| public R visitNoTypeAsNone(NoType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitNoTypeAsPackage | back to summary |
|---|---|
| public R visitNoTypeAsPackage(NoType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitNoTypeAsVoid | back to summary |
|---|---|
| public R visitNoTypeAsVoid(NoType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitive | back to summary |
|---|---|
| public R visitPrimitive(PrimitiveType t, P p) Overrides javax. Implements javax. Doc from javax. Visits a primitive type. Implementation Specification This implementation dispatches to the visit method for
the specific kind of primitive type:
| |
| visitPrimitiveAsBoolean | back to summary |
|---|---|
| public R visitPrimitiveAsBoolean(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsByte | back to summary |
|---|---|
| public R visitPrimitiveAsByte(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsChar | back to summary |
|---|---|
| public R visitPrimitiveAsChar(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsDouble | back to summary |
|---|---|
| public R visitPrimitiveAsDouble(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsFloat | back to summary |
|---|---|
| public R visitPrimitiveAsFloat(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsInt | back to summary |
|---|---|
| public R visitPrimitiveAsInt(PrimitiveType t, P p) Visits an Implementation Specification This implementation calls
| |
| visitPrimitiveAsLong | back to summary |
|---|---|
| public R visitPrimitiveAsLong(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |
| visitPrimitiveAsShort | back to summary |
|---|---|
| public R visitPrimitiveAsShort(PrimitiveType t, P p) Visits a Implementation Specification This implementation calls
| |