| public interface javax.lang.model.type TypeMirror
|
Java SE 6 |
void.
Types should be compared using the utility methods in 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 TypeMirror object, either use a visitor
or use the result of the #getKind method. Using instanceof is not necessarily a reliable idiom for
determining the effective class of an object in this modeling
hierarchy since an implementation may choose to have a single
object implement multiple TypeMirror subinterfaces.
| version | 1.6 06/08/03 |
| since | 1.6 |
| See also | javax.lang.model.element.Element, javax.lang.model.util.Types |
| Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public Object<R, P> | accept(TypeVisitor v, Object p) Details
Applies a visitor to this type.
| ||||||||||
| public boolean | equals(Object obj) Details
Obeys the general contract of Object.equals.
This method does not, however, indicate whether two types represent
the same type.
Semantic comparisons of type equality should instead use
TypeMirror).
The results of t1.equals(t2) and
Types.isSameType(t1, t2) may differ.
| ||||||||||
| public int | hashCode() Details
| ||||||||||
| public String | toString() Details
Returns an informative string representation of this type. If
possible, the string should be of a form suitable for
representing this type in source code. Any names embedded in
the result are qualified if possible.
| ||||||||||
| Properties | |||
|---|---|---|---|
| public TypeKind | getKind() Details
Returns the kind of this 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 |
![]() |
![]() |
|