Package com.sun.mirror.type
Interface TypeMirror
-
- All Known Subinterfaces:
AnnotationType,ArrayType,ClassType,DeclaredType,EnumType,InterfaceType,PrimitiveType,ReferenceType,TypeVariable,VoidType,WildcardType
public interface TypeMirrorRepresents a type in the Java programming language. Types include primitive types, class and interface types, array types, and type variables. Wildcard type arguments, and the pseudo-type representing the type ofvoid, are represented by type mirrors as well.Types may be compared using the utility methods in
Types. There is no guarantee that any particular type will always be represented by the same object.- Since:
- 1.5
- See Also:
Declaration,Types
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(TypeVisitor v)Applies a visitor to this type.booleanequals(Object obj)Tests whether two types represent the same type.StringtoString()Returns a string representation of this type.
-
-
-
Method Detail
-
toString
String toString()
Returns a string representation of this type. Any names embedded in the expression are qualified.
-
equals
boolean equals(Object obj)
Tests whether two types represent the same type.
-
accept
void accept(TypeVisitor v)
Applies a visitor to this type.- Parameters:
v- the visitor operating on this type
-
-