| public interface javax.lang.model.type TypeVisitor<R, P>
|
Java SE 6 |
accept method, the visitXYZ
method most applicable to that type is invoked.
Classes implementing this interface may or may not throw a
NullPointerException if the additional parameter p
is null; see documentation of the implementing class for
details.
WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform. To avoid this source incompatibility, visitor implementations are encouraged to instead extend the appropriate abstract visitor class that implements this interface. However, an API should generally use this visitor interface as the type for parameters, return type, etc. rather than one of the abstract classes.
| 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. |
| version | 1.5 06/07/31 |
| since | 1.6 |
| Methods | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| public Object | visit(TypeMirror t, Object p) Details
Visits a type.
| ||||||||
| public Object | visit(TypeMirror t) Details
A convenience method equivalent to v.visit(t, null).
| ||||||||
| public Object | visitArray(ArrayType t, Object p) Details
Visits an array type.
| ||||||||
| public Object | visitDeclared(DeclaredType t, Object p) Details
Visits a declared type.
| ||||||||
| public Object | visitError(ErrorType t, Object p) Details
Visits an error type.
| ||||||||
| public Object | visitExecutable(ExecutableType t, Object p) Details
Visits an executable type.
| ||||||||
| public Object | visitNoType(NoType t, Object p) Details
Visits a NoType instance.
| ||||||||
| public Object | visitNull(NullType t, Object p) Details
Visits the null type.
| ||||||||
| public Object | visitPrimitive(PrimitiveType t, Object p) Details
Visits a primitive type.
| ||||||||
| public Object | visitTypeVariable(TypeVariable t, Object p) Details
Visits a type variable.
| ||||||||
| public Object | visitUnknown(TypeMirror t, Object p) Details
Visits an unknown kind of type.
This can occur if the language evolves and new kinds
of types are added to the TypeMirror hierarchy.
| ||||||||
| public Object | visitWildcard(WildcardType t, Object p) Details
Visits a wildcard type.
| ||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|