Types may be compared using the utility methods in {@link Types}. There is no guarantee that any particular type will always be represented by the same object. @author Joseph D. Darcy @author Scott Seligman @version 1.4 05/11/17 @see Declaration @see Types @since 1.5
Types should be compared using the utility methods in {@link Types}. There is no guarantee that any particular type will always be represented by the same object.
To implement operations based on the class of an {@code TypeMirror} object, either use a {@linkplain TypeVisitor visitor}or use the result of the {@link #getKind} method. Using {@code instanceof} is not necessarily a reliable idiom fordetermining the effective class of an object in this modeling hierarchy since an implementation may choose to have a single object implement multiple {@code TypeMirror} subinterfaces. @author Joseph D. Darcy @author Scott Seligman @author Peter von der Ahé @see Element @see Types @since 1.6
|
|
|
|