Package org.aspectj.weaver
Class UnresolvedType
- java.lang.Object
-
- org.aspectj.weaver.UnresolvedType
-
- All Implemented Interfaces:
Traceable,TypeVariableDeclaringElement
- Direct Known Subclasses:
ResolvedType,UnresolvedTypeVariableReferenceType,WildcardedUnresolvedType
public class UnresolvedType extends Object implements Traceable, TypeVariableDeclaringElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnresolvedType.TypeKind
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnresolvedType(String signature)protectedUnresolvedType(String signature, String signatureErasure)UnresolvedType(String signature, String signatureErasure, UnresolvedType[] typeParams)
-
Method Summary
-
-
-
Field Detail
-
NONE
public static final UnresolvedType[] NONE
-
OBJECT
public static final UnresolvedType OBJECT
-
OBJECTARRAY
public static final UnresolvedType OBJECTARRAY
-
CLONEABLE
public static final UnresolvedType CLONEABLE
-
SERIALIZABLE
public static final UnresolvedType SERIALIZABLE
-
THROWABLE
public static final UnresolvedType THROWABLE
-
RUNTIME_EXCEPTION
public static final UnresolvedType RUNTIME_EXCEPTION
-
ERROR
public static final UnresolvedType ERROR
-
AT_INHERITED
public static final UnresolvedType AT_INHERITED
-
AT_RETENTION
public static final UnresolvedType AT_RETENTION
-
ENUM
public static final UnresolvedType ENUM
-
ANNOTATION
public static final UnresolvedType ANNOTATION
-
JL_CLASS
public static final UnresolvedType JL_CLASS
-
JAVA_LANG_CLASS_ARRAY
public static final UnresolvedType JAVA_LANG_CLASS_ARRAY
-
JL_STRING
public static final UnresolvedType JL_STRING
-
JL_EXCEPTION
public static final UnresolvedType JL_EXCEPTION
-
JAVA_LANG_REFLECT_METHOD
public static final UnresolvedType JAVA_LANG_REFLECT_METHOD
-
JAVA_LANG_REFLECT_FIELD
public static final UnresolvedType JAVA_LANG_REFLECT_FIELD
-
JAVA_LANG_REFLECT_CONSTRUCTOR
public static final UnresolvedType JAVA_LANG_REFLECT_CONSTRUCTOR
-
JAVA_LANG_ANNOTATION
public static final UnresolvedType JAVA_LANG_ANNOTATION
-
SUPPRESS_AJ_WARNINGS
public static final UnresolvedType SUPPRESS_AJ_WARNINGS
-
AT_TARGET
public static final UnresolvedType AT_TARGET
-
SOMETHING
public static final UnresolvedType SOMETHING
-
ARRAY_WITH_JUST_OBJECT
public static final UnresolvedType[] ARRAY_WITH_JUST_OBJECT
-
JOINPOINT_STATICPART
public static final UnresolvedType JOINPOINT_STATICPART
-
JOINPOINT_ENCLOSINGSTATICPART
public static final UnresolvedType JOINPOINT_ENCLOSINGSTATICPART
-
AJC_PRIVILEGED
public static final UnresolvedType AJC_PRIVILEGED
-
PROCEEDING_JOINPOINT
public static final UnresolvedType PROCEEDING_JOINPOINT
-
BOOLEAN
public static final UnresolvedType BOOLEAN
-
BYTE
public static final UnresolvedType BYTE
-
CHAR
public static final UnresolvedType CHAR
-
DOUBLE
public static final UnresolvedType DOUBLE
-
FLOAT
public static final UnresolvedType FLOAT
-
INT
public static final UnresolvedType INT
-
LONG
public static final UnresolvedType LONG
-
SHORT
public static final UnresolvedType SHORT
-
VOID
public static final UnresolvedType VOID
-
MISSING_NAME
public static final String MISSING_NAME
- See Also:
- Constant Field Values
-
typeKind
protected UnresolvedType.TypeKind typeKind
-
signature
protected String signature
-
signatureErasure
protected String signatureErasure
-
typeParameters
protected UnresolvedType[] typeParameters
-
typeVariables
protected TypeVariable[] typeVariables
-
-
Method Detail
-
isPrimitiveType
public boolean isPrimitiveType()
-
isVoid
public boolean isVoid()
-
isSimpleType
public boolean isSimpleType()
-
isRawType
public boolean isRawType()
-
isGenericType
public boolean isGenericType()
-
isParameterizedType
public boolean isParameterizedType()
-
isParameterizedOrGenericType
public boolean isParameterizedOrGenericType()
-
isParameterizedOrRawType
public boolean isParameterizedOrRawType()
-
isTypeVariableReference
public boolean isTypeVariableReference()
-
isGenericWildcard
public boolean isGenericWildcard()
-
getTypekind
public UnresolvedType.TypeKind getTypekind()
-
isArray
public final boolean isArray()
-
getSize
public int getSize()
-
forName
public static UnresolvedType forName(String name)
-
forNames
public static UnresolvedType[] forNames(String[] names)
-
forGenericType
public static UnresolvedType forGenericType(String name, TypeVariable[] tvbs, String genericSig)
-
forGenericTypeSignature
public static UnresolvedType forGenericTypeSignature(String sig, String declaredGenericSig)
-
forGenericTypeVariables
public static UnresolvedType forGenericTypeVariables(String sig, TypeVariable[] tVars)
-
forRawTypeName
public static UnresolvedType forRawTypeName(String name)
-
forPrimitiveType
public static UnresolvedType forPrimitiveType(String signature)
-
add
public static UnresolvedType[] add(UnresolvedType[] types, UnresolvedType end)
-
insert
public static UnresolvedType[] insert(UnresolvedType start, UnresolvedType[] types)
-
forSignature
public static UnresolvedType forSignature(String signature)
-
forSignatures
public static UnresolvedType[] forSignatures(String[] sigs)
-
getName
public String getName()
-
getSimpleName
public String getSimpleName()
-
getRawName
public String getRawName()
-
getBaseName
public String getBaseName()
-
getSimpleBaseName
public String getSimpleBaseName()
-
getNames
public static String[] getNames(UnresolvedType[] types)
-
getSignature
public String getSignature()
-
getErasureSignature
public String getErasureSignature()
-
needsModifiableDelegate
public boolean needsModifiableDelegate()
-
setNeedsModifiableDelegate
public void setNeedsModifiableDelegate(boolean b)
-
getRawType
public UnresolvedType getRawType()
-
getOutermostType
public UnresolvedType getOutermostType()
-
getComponentType
public UnresolvedType getComponentType()
-
toDebugString
public String toDebugString()
-
resolve
public ResolvedType resolve(World world)
-
write
public final void write(CompressingDataOutputStream s) throws IOException
- Throws:
IOException
-
read
public static UnresolvedType read(DataInputStream s) throws IOException
- Throws:
IOException
-
getNameAsIdentifier
public String getNameAsIdentifier()
-
getPackageNameAsIdentifier
public String getPackageNameAsIdentifier()
-
getTypeParameters
public UnresolvedType[] getTypeParameters()
-
getTypeVariables
public TypeVariable[] getTypeVariables()
-
getTypeVariableNamed
public TypeVariable getTypeVariableNamed(String name)
- Specified by:
getTypeVariableNamedin interfaceTypeVariableDeclaringElement
-
toTraceString
public String toTraceString()
- Specified by:
toTraceStringin interfaceTraceable
-
parameterize
public UnresolvedType parameterize(Map<String,UnresolvedType> typeBindings)
-
getClassName
public String getClassName()
-
getPackageName
public String getPackageName()
-
writeArray
public static void writeArray(UnresolvedType[] types, CompressingDataOutputStream stream) throws IOException
- Throws:
IOException
-
readArray
public static UnresolvedType[] readArray(DataInputStream s) throws IOException
- Throws:
IOException
-
makeArray
public static UnresolvedType makeArray(UnresolvedType base, int dims)
-
-