Every UnresolvedType has a signature, the unique key for the type in the world.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType[] | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| private String | className
Calculated on first request - the class name (String for type java.lang.String) |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final String | |
| private boolean | |
| public static final UnresolvedType[] | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| private String | packageName
Calculated on first request - the package name (java.lang for type java.lang.String) |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| protected String | |
| protected String | signatureErasure
The erasure of the signature. |
| private int | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| public static final UnresolvedType | |
| protected UnresolvedType. | |
| protected UnresolvedType[] | typeParameters
Iff isParameterized(), then these are the type parameters |
| protected TypeVariable[] | typeVariables
Iff isGeneric(), then these are the type variables declared on the type Iff isParameterized(), then these are the type variables bound as parameters in the type |
| public static final UnresolvedType |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static UnresolvedType[] | add(UnresolvedType[]
the left hand side of the new array types, UnresolvedType the right hand side of the new array end)Creates a new type array with a fresh type appended to the end. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static UnresolvedType | |
| public static UnresolvedType | |
| public static UnresolvedType | |
| public static UnresolvedType | |
| public static UnresolvedType[] | |
| public static UnresolvedType | |
| public static UnresolvedType | |
| public static UnresolvedType | Returns: a type object represnting that JVM bytecode signature.the JVM bytecode signature string for the desired type. signature)Constructs a Type for a JVM bytecode signature string. |
| public static UnresolvedType[] | Returns: an array of UnresolvedType objects.an array of JVM bytecode type signatures sigs)Constructs a UnresolvedType for each JVM bytecode type signature in an incoming array. |
| public String | |
| public String | |
| public UnresolvedType | Returns: the component UnresolvedType object, or null.Returns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type. |
| public final int | |
| public String | |
| public String | Returns: the java language name of this type.Returns the name of this type in java language form (e.g. java.lang.Thread or boolean[]). |
| public String | |
| public static String[] | Returns: an array of Strings fo the java language names of types.an array of UnresolvedType objects types)Returns an array of strings representing the java langauge names of an array of types. |
| public UnresolvedType | Returns: the outermost enclosing UnresolvedType object or this.Returns a UnresolvedType object representing the effective outermost enclosing type for a name type. |
| public String | |
| public String | |
| public String | |
| public UnresolvedType | |
| public String | Returns: the java JVM signature string for this type.Returns the name of this type in JVM signature form. |
| public String | |
| public String | |
| public int | |
| public UnresolvedType. | |
| public UnresolvedType[] | |
| public TypeVariable | |
| public TypeVariable[] | |
| public int | hashCode()
Overrides java. |
| public static UnresolvedType[] | insert(UnresolvedType
the left hand side of the new array start, UnresolvedType[] the right hand side of the new array types)Creates a new type array with a fresh type inserted at the beginning. |
| public final boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static UnresolvedType | |
| private static String | |
| public boolean | |
| public UnresolvedType | parameterize(Map<String, UnresolvedType> typeBindings)
Return a version of this parameterized type in which any type parameters that are type variable references are replaced by their matching type variable binding. |
| public static UnresolvedType | read(DataInputStream s)
Read in an UnresolvedType - just read the signature and rebuild the UnresolvedType. |
| public static UnresolvedType[] | |
| public ResolvedType | |
| public void | |
| private static String | |
| public String | |
| public String | toString()
Overrides java. |
| public String | |
| public final void | |
| public static void |
| AJC_PRIVILEGED | back to summary |
|---|---|
| public static final UnresolvedType AJC_PRIVILEGED | |
| ANNOTATION | back to summary |
|---|---|
| public static final UnresolvedType ANNOTATION | |
| ARRAY_WITH_JUST_OBJECT | back to summary |
|---|---|
| public static final UnresolvedType[] ARRAY_WITH_JUST_OBJECT | |
| AT_INHERITED | back to summary |
|---|---|
| public static final UnresolvedType AT_INHERITED | |
| AT_RETENTION | back to summary |
|---|---|
| public static final UnresolvedType AT_RETENTION | |
| AT_TARGET | back to summary |
|---|---|
| public static final UnresolvedType AT_TARGET | |
| BOOLEAN | back to summary |
|---|---|
| public static final UnresolvedType BOOLEAN | |
| BYTE | back to summary |
|---|---|
| public static final UnresolvedType BYTE | |
| CHAR | back to summary |
|---|---|
| public static final UnresolvedType CHAR | |
| className | back to summary |
|---|---|
| private String className Calculated on first request - the class name (String for type java.lang.String) | |
| CLONEABLE | back to summary |
|---|---|
| public static final UnresolvedType CLONEABLE | |
| DOUBLE | back to summary |
|---|---|
| public static final UnresolvedType DOUBLE | |
| ENUM | back to summary |
|---|---|
| public static final UnresolvedType ENUM | |
| ERROR | back to summary |
|---|---|
| public static final UnresolvedType ERROR | |
| FLOAT | back to summary |
|---|---|
| public static final UnresolvedType FLOAT | |
| INT | back to summary |
|---|---|
| public static final UnresolvedType INT | |
| JAVA_LANG_ANNOTATION | back to summary |
|---|---|
| public static final UnresolvedType JAVA_LANG_ANNOTATION | |
| JAVA_LANG_CLASS_ARRAY | back to summary |
|---|---|
| public static final UnresolvedType JAVA_LANG_CLASS_ARRAY | |
| JAVA_LANG_REFLECT_CONSTRUCTOR | back to summary |
|---|---|
| public static final UnresolvedType JAVA_LANG_REFLECT_CONSTRUCTOR | |
| JAVA_LANG_REFLECT_FIELD | back to summary |
|---|---|
| public static final UnresolvedType JAVA_LANG_REFLECT_FIELD | |
| JAVA_LANG_REFLECT_METHOD | back to summary |
|---|---|
| public static final UnresolvedType JAVA_LANG_REFLECT_METHOD | |
| JL_CLASS | back to summary |
|---|---|
| public static final UnresolvedType JL_CLASS | |
| JL_EXCEPTION | back to summary |
|---|---|
| public static final UnresolvedType JL_EXCEPTION | |
| JL_STRING | back to summary |
|---|---|
| public static final UnresolvedType JL_STRING | |
| JOINPOINT_ENCLOSINGSTATICPART | back to summary |
|---|---|
| public static final UnresolvedType JOINPOINT_ENCLOSINGSTATICPART | |
| JOINPOINT_STATICPART | back to summary |
|---|---|
| public static final UnresolvedType JOINPOINT_STATICPART | |
| LONG | back to summary |
|---|---|
| public static final UnresolvedType LONG | |
| MISSING_NAME | back to summary |
|---|---|
| public static final String MISSING_NAME | |
| needsModifiableDelegate | back to summary |
|---|---|
| private boolean needsModifiableDelegate | |
| NONE | back to summary |
|---|---|
| public static final UnresolvedType[] NONE | |
| OBJECT | back to summary |
|---|---|
| public static final UnresolvedType OBJECT | |
| OBJECTARRAY | back to summary |
|---|---|
| public static final UnresolvedType OBJECTARRAY | |
| packageName | back to summary |
|---|---|
| private String packageName Calculated on first request - the package name (java.lang for type java.lang.String) | |
| PROCEEDING_JOINPOINT | back to summary |
|---|---|
| public static final UnresolvedType PROCEEDING_JOINPOINT | |
| RUNTIME_EXCEPTION | back to summary |
|---|---|
| public static final UnresolvedType RUNTIME_EXCEPTION | |
| SERIALIZABLE | back to summary |
|---|---|
| public static final UnresolvedType SERIALIZABLE | |
| SHORT | back to summary |
|---|---|
| public static final UnresolvedType SHORT | |
| signature | back to summary |
|---|---|
| protected String signature | |
| signatureErasure | back to summary |
|---|---|
| protected String signatureErasure The erasure of the signature. Contains only the Java signature of the type with all supertype, superinterface, type variable, and parameter information removed. | |
| size | back to summary |
|---|---|
| private int size | |
| SOMETHING | back to summary |
|---|---|
| public static final UnresolvedType SOMETHING | |
| SUPPRESS_AJ_WARNINGS | back to summary |
|---|---|
| public static final UnresolvedType SUPPRESS_AJ_WARNINGS | |
| THROWABLE | back to summary |
|---|---|
| public static final UnresolvedType THROWABLE | |
| typeKind | back to summary |
|---|---|
| protected UnresolvedType. | |
| typeParameters | back to summary |
|---|---|
| protected UnresolvedType[] typeParameters Iff isParameterized(), then these are the type parameters | |
| typeVariables | back to summary |
|---|---|
| protected TypeVariable[] typeVariables Iff isGeneric(), then these are the type variables declared on the type Iff isParameterized(), then these are the type variables bound as parameters in the type | |
| VOID | back to summary |
|---|---|
| public static final UnresolvedType VOID | |
| UnresolvedType | back to summary |
|---|---|
| protected UnresolvedType(String signature) | |
| UnresolvedType | back to summary |
|---|---|
| protected UnresolvedType(String signature, String signatureErasure) | |
| UnresolvedType | back to summary |
|---|---|
| public UnresolvedType(String signature, String signatureErasure, UnresolvedType[] typeParams) | |
| add | back to summary |
|---|---|
| public static UnresolvedType[] add(UnresolvedType[] types, UnresolvedType end) Creates a new type array with a fresh type appended to the end.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Equality is checked based on the underlying signature.
| |
| forGenericType | back to summary |
|---|---|
| public static UnresolvedType forGenericType(String name, TypeVariable[] tvbs, String genericSig) | |
| forGenericTypeSignature | back to summary |
|---|---|
| public static UnresolvedType forGenericTypeSignature(String sig, String declaredGenericSig) | |
| forGenericTypeVariables | back to summary |
|---|---|
| public static UnresolvedType forGenericTypeVariables(String sig, TypeVariable[] tVars) | |
| forName | back to summary |
|---|---|
| public static UnresolvedType forName(String name) Note Use forSignature() if you can, it'll be cheaper ! Constructs a UnresolvedType for a java language type name. For example:
Types may equivalently be produced by this or by forSignature(String).
| |
| forNames | back to summary |
|---|---|
| public static UnresolvedType[] forNames(String[] names) Constructs a UnresolvedType for each java language type name in an incoming array.
| |
| forPrimitiveType | back to summary |
|---|---|
| public static UnresolvedType forPrimitiveType(String signature) | |
| forRawTypeName | back to summary |
|---|---|
| public static UnresolvedType forRawTypeName(String name) | |
| forSignature | back to summary |
|---|---|
| public static UnresolvedType forSignature(String signature) Constructs a Type for a JVM bytecode signature string. For example:
Types may equivalently be produced by this or by forName(String). This method should not be passed P signatures.
| |
| forSignatures | back to summary |
|---|---|
| public static UnresolvedType[] forSignatures(String[] sigs) Constructs a UnresolvedType for each JVM bytecode type signature in an incoming array.
| |
| getBaseName | back to summary |
|---|---|
| public String getBaseName() | |
| getClassName | back to summary |
|---|---|
public String getClassName()
| |
| getComponentType | back to summary |
|---|---|
| public UnresolvedType getComponentType() Returns a UnresolvedType object representing the component type of this array, or null if this type does not represent an array type.
| |
| getDimensions | back to summary |
|---|---|
| public final int getDimensions() | |
| getErasureSignature | back to summary |
|---|---|
| public String getErasureSignature() For parameterized types, return the signature for the raw type | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this type in java language form (e.g. java.lang.Thread or boolean[]). This produces a more aesthetically
pleasing string than
| |
| getNameAsIdentifier | back to summary |
|---|---|
| public String getNameAsIdentifier() | |
| getNames | back to summary |
|---|---|
| public static String[] getNames(UnresolvedType[] types) Returns an array of strings representing the java langauge names of an array of types.
| |
| getOutermostType | back to summary |
|---|---|
| public UnresolvedType getOutermostType() Returns a UnresolvedType object representing the effective outermost enclosing type for a name type. For all other types, this will return the type itself. The only guarantee is given in JLS 13.1 where code generated according to those rules will have type names that can be split apart in this way.
| |
| getPackageName | back to summary |
|---|---|
public String getPackageName()
| |
| getPackageNameAsIdentifier | back to summary |
|---|---|
| public String getPackageNameAsIdentifier() | |
| getRawName | back to summary |
|---|---|
| public String getRawName() | |
| getRawType | back to summary |
|---|---|
| public UnresolvedType getRawType() | |
| getSignature | back to summary |
|---|---|
| public String getSignature() Returns the name of this type in JVM signature form. For all UnresolvedType t: and for all String s where s is a lexically valid JVM type signature string:UnresolvedType.forSignature(t.getSignature()).equals(t) UnresolvedType.forSignature(s).getSignature().equals(s)
| |
| getSimpleBaseName | back to summary |
|---|---|
| public String getSimpleBaseName() | |
| getSimpleName | back to summary |
|---|---|
| public String getSimpleName() | |
| getSize | back to summary |
|---|---|
| public int getSize() This is the size of this type as used in JVM. | |
| getTypekind | back to summary |
|---|---|
| public UnresolvedType. | |
| getTypeParameters | back to summary |
|---|---|
| public UnresolvedType[] getTypeParameters() | |
| getTypeVariableNamed | back to summary |
|---|---|
| public TypeVariable getTypeVariableNamed(String name) Implements org.
| |
| getTypeVariables | back to summary |
|---|---|
| public TypeVariable[] getTypeVariables() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Equality is checked based on the underlying signature, so the hash code of a particular type is the hash code of its signature string.
| |
| insert | back to summary |
|---|---|
| public static UnresolvedType[] insert(UnresolvedType start, UnresolvedType[] types) Creates a new type array with a fresh type inserted at the beginning.
| |
| isArray | back to summary |
|---|---|
| public final boolean isArray() | |
| isGenericType | back to summary |
|---|---|
| public boolean isGenericType() | |
| isGenericWildcard | back to summary |
|---|---|
| public boolean isGenericWildcard() | |
| isParameterizedOrGenericType | back to summary |
|---|---|
| public boolean isParameterizedOrGenericType() | |
| isParameterizedOrRawType | back to summary |
|---|---|
| public boolean isParameterizedOrRawType() | |
| isParameterizedType | back to summary |
|---|---|
| public boolean isParameterizedType() | |
| isPrimitiveType | back to summary |
|---|---|
| public boolean isPrimitiveType() | |
| isRawType | back to summary |
|---|---|
| public boolean isRawType() | |
| isSimpleType | back to summary |
|---|---|
| public boolean isSimpleType() | |
| isTypeVariableReference | back to summary |
|---|---|
| public boolean isTypeVariableReference() | |
| isVoid | back to summary |
|---|---|
| public boolean isVoid() | |
| makeArray | back to summary |
|---|---|
| public static UnresolvedType makeArray(UnresolvedType base, int dims) | |
| nameToSignature | back to summary |
|---|---|
| private static String nameToSignature(String name) | |
| needsModifiableDelegate | back to summary |
|---|---|
| public boolean needsModifiableDelegate() | |
| parameterize | back to summary |
|---|---|
| public UnresolvedType parameterize(Map<String, UnresolvedType> typeBindings) Return a version of this parameterized type in which any type parameters that are type variable references are replaced by their matching type variable binding. | |
| read | back to summary |
|---|---|
| public static UnresolvedType read(DataInputStream s) throws IOException Read in an UnresolvedType - just read the signature and rebuild the UnresolvedType. | |
| readArray | back to summary |
|---|---|
| public static UnresolvedType[] readArray(DataInputStream s) throws IOException | |
| resolve | back to summary |
|---|---|
| public ResolvedType resolve(World world) Returns a resolved version of this type according to a particular world.
| |
| setNeedsModifiableDelegate | back to summary |
|---|---|
| public void setNeedsModifiableDelegate(boolean b) | |
| signatureToName | back to summary |
|---|---|
| private static String signatureToName(String signature) | |
| toDebugString | back to summary |
|---|---|
| public String toDebugString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a java language string representation of this type.
| |
| toTraceString | back to summary |
|---|---|
| public String toTraceString() Implements org.
| |
| write | back to summary |
|---|---|
| public final void write(CompressingDataOutputStream s) throws IOException Write out an UnresolvedType - the signature should be enough. | |
| writeArray | back to summary |
|---|---|
| public static void writeArray(UnresolvedType[] types, CompressingDataOutputStream stream) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final UnresolvedType. | |
| public static final UnresolvedType. | |
| public static final UnresolvedType. | |
| public static final UnresolvedType. | |
| public static final UnresolvedType. | |
| private final String | |
| public static final UnresolvedType. | |
| public static final UnresolvedType. |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| GENERIC | back to summary |
|---|---|
| public static final UnresolvedType. | |
| PARAMETERIZED | back to summary |
|---|---|
| public static final UnresolvedType. | |
| PRIMITIVE | back to summary |
|---|---|
| public static final UnresolvedType. | |
| RAW | back to summary |
|---|---|
| public static final UnresolvedType. | |
| SIMPLE | back to summary |
|---|---|
| public static final UnresolvedType. | |
| type | back to summary |
|---|---|
| private final String type | |
| TYPE_VARIABLE | back to summary |
|---|---|
| public static final UnresolvedType. | |
| WILDCARD | back to summary |
|---|---|
| public static final UnresolvedType. | |
| TypeKind | back to summary |
|---|---|
| private TypeKind(String type) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |