Uses of Interface
com.sun.mirror.type.TypeMirror
Package
Description
Interfaces used to model program element declarations.
Interfaces used to model types.
Utilities to assist in the processing of declarations and types.
-
Uses of TypeMirror in com.sun.mirror.declaration
Modifier and TypeMethodDescriptionMethodDeclaration.getReturnType()
Returns the formal return type of this method.FieldDeclaration.getType()
Returns the type of this field.ParameterDeclaration.getType()
Returns the type of this parameter. -
Uses of TypeMirror in com.sun.mirror.type
Modifier and TypeInterfaceDescriptioninterface
Represents an annotation type.interface
Represents an array type.interface
Represents a class type.interface
Represents a declared type, either a class type or an interface type.interface
Represents an enum type.interface
Represents an interface type.interface
Represents a primitive type.interface
Represents a reference type.interface
Represents a type variable.interface
A pseudo-type representing the type ofvoid
.interface
Represents a wildcard type argument.Modifier and TypeMethodDescriptionArrayType.getComponentType()
Returns the component type of this array type.MirroredTypeException.getTypeMirror()
Returns the type mirror corresponding to the type being accessed.Modifier and TypeMethodDescriptionDeclaredType.getActualTypeArguments()
Returns (in order) the actual type arguments of this type.MirroredTypesException.getTypeMirrors()
Returns the type mirrors corresponding to the types being accessed.ModifierConstructorDescriptionConstructs a new MirroredTypeException for the specified type.ModifierConstructorDescriptionConstructs a new MirroredTypesException for the specified types. -
Uses of TypeMirror in com.sun.mirror.util
Modifier and TypeMethodDescriptionTypes.getArrayType
(TypeMirror componentType) Returns an array type with the specified component type.Types.getDeclaredType
(TypeDeclaration decl, TypeMirror... typeArgs) Returns the type corresponding to a type declaration and actual type arguments.Types.getDeclaredType
(DeclaredType containing, TypeDeclaration decl, TypeMirror... typeArgs) Returns the type corresponding to a type declaration and actual arguments, given a containing type of which it is a member.Types.getErasure
(TypeMirror t) Returns the erasure of a type.boolean
Types.isAssignable
(TypeMirror t1, TypeMirror t2) Tests whether one type is assignable to another.boolean
Types.isSubtype
(TypeMirror t1, TypeMirror t2) Tests whether one type is a subtype of the another.void
SimpleTypeVisitor.visitTypeMirror
(TypeMirror t) Visits a type mirror.void
TypeVisitor.visitTypeMirror
(TypeMirror t) Visits a type mirror.