Package org.aspectj.weaver
Class TypeVariable
- java.lang.Object
-
- org.aspectj.weaver.TypeVariable
-
public class TypeVariable extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanisResolvedstatic intMETHODstatic TypeVariable[]NONEstatic intTYPEstatic intUNKNOWN
-
Constructor Summary
Constructors Constructor Description TypeVariable(String name)TypeVariable(String name, UnresolvedType anUpperBound)TypeVariable(String name, UnresolvedType anUpperBound, UnresolvedType[] superInterfaces)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeBoundTo(ResolvedType candidate)TypeVariableDeclaringElementgetDeclaringElement()intgetDeclaringElementKind()StringgetDisplayName()StringgetErasureSignature()UnresolvedTypegetFirstBound()StringgetGenericSignature()StringgetName()intgetRank()StringgetSignature()StringgetSignatureForAttribute()UnresolvedTypegetSuperclass()UnresolvedType[]getSuperInterfaces()UnresolvedTypegetUpperBound()static TypeVariableread(VersionedDataInputStream s)TypeVariableresolve(World world)voidsetAdditionalInterfaceBounds(UnresolvedType[] superInterfaces)voidsetDeclaringElement(TypeVariableDeclaringElement element)voidsetDeclaringElementKind(int kind)voidsetRank(int rank)voidsetSuperclass(UnresolvedType superclass)voidsetUpperBound(UnresolvedType superclass)StringtoDebugString()StringtoString()voidwrite(CompressingDataOutputStream s)
-
-
-
Field Detail
-
NONE
public static final TypeVariable[] NONE
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
METHOD
public static final int METHOD
- See Also:
- Constant Field Values
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
isResolved
public boolean isResolved
-
-
Constructor Detail
-
TypeVariable
public TypeVariable(String name)
-
TypeVariable
public TypeVariable(String name, UnresolvedType anUpperBound)
-
TypeVariable
public TypeVariable(String name, UnresolvedType anUpperBound, UnresolvedType[] superInterfaces)
-
-
Method Detail
-
getFirstBound
public UnresolvedType getFirstBound()
-
getUpperBound
public UnresolvedType getUpperBound()
-
getSuperInterfaces
public UnresolvedType[] getSuperInterfaces()
-
getName
public String getName()
-
resolve
public TypeVariable resolve(World world)
-
canBeBoundTo
public boolean canBeBoundTo(ResolvedType candidate)
-
setUpperBound
public void setUpperBound(UnresolvedType superclass)
-
setAdditionalInterfaceBounds
public void setAdditionalInterfaceBounds(UnresolvedType[] superInterfaces)
-
toDebugString
public String toDebugString()
-
getDisplayName
public String getDisplayName()
-
getSignature
public String getSignature()
-
getSignatureForAttribute
public String getSignatureForAttribute()
-
setRank
public void setRank(int rank)
-
getRank
public int getRank()
-
setDeclaringElement
public void setDeclaringElement(TypeVariableDeclaringElement element)
-
getDeclaringElement
public TypeVariableDeclaringElement getDeclaringElement()
-
setDeclaringElementKind
public void setDeclaringElementKind(int kind)
-
getDeclaringElementKind
public int getDeclaringElementKind()
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Throws:
IOException
-
read
public static TypeVariable read(VersionedDataInputStream s) throws IOException
- Throws:
IOException
-
getGenericSignature
public String getGenericSignature()
-
getErasureSignature
public String getErasureSignature()
-
getSuperclass
public UnresolvedType getSuperclass()
-
setSuperclass
public void setSuperclass(UnresolvedType superclass)
-
-