Package org.aspectj.weaver
Klasse TypeVariable
java.lang.Object
org.aspectj.weaver.TypeVariable
Represents a type variable with possible bounds.
- Autor:
- Adrian Colyer, Andy Clement
-
Feldübersicht
Modifizierer und TypFeldBeschreibungboolean
static final int
static final TypeVariable[]
static final int
static final int
-
Konstruktorübersicht
KonstruktorBeschreibungTypeVariable
(String name) Constructor for an unbound type variable, eg.TypeVariable
(String name, UnresolvedType anUpperBound) TypeVariable
(String name, UnresolvedType anUpperBound, UnresolvedType[] superInterfaces) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
canBeBoundTo
(ResolvedType candidate) answer true if the given type satisfies all of the bound constraints of this type variable.int
getName()
int
getRank()
Return complete signature, e.g.static TypeVariable
resolve all the bounds of this type variablevoid
setAdditionalInterfaceBounds
(UnresolvedType[] superInterfaces) void
void
setDeclaringElementKind
(int kind) void
setRank
(int rank) void
setSuperclass
(UnresolvedType superclass) void
setUpperBound
(UnresolvedType superclass) toString()
void
-
Felddetails
-
NONE
-
UNKNOWN
public static final int UNKNOWN- Siehe auch:
-
METHOD
public static final int METHOD- Siehe auch:
-
TYPE
public static final int TYPE- Siehe auch:
-
isResolved
public boolean isResolved
-
-
Konstruktordetails
-
TypeVariable
Constructor for an unbound type variable, eg. 'T' -
TypeVariable
-
TypeVariable
-
-
Methodendetails
-
getFirstBound
- Gibt zurück:
- the first bound, either the superclass or if non is specified the first interface or if non are specified then OBJECT
-
getUpperBound
-
getSuperInterfaces
-
getName
-
resolve
resolve all the bounds of this type variable -
canBeBoundTo
answer true if the given type satisfies all of the bound constraints of this type variable. If type variable has not been resolved then throws IllegalStateException -
setUpperBound
-
setAdditionalInterfaceBounds
-
toDebugString
-
getDisplayName
-
toString
-
getSignature
Return complete signature, e.g. "T extends Number" would return "T:Ljava/lang/Number;" note: MAY INCLUDE P types if bounds are parameterized types -
getSignatureForAttribute
- Gibt zurück:
- signature for inclusion in an attribute, there must be no 'P' in it signatures
-
setRank
public void setRank(int rank) -
getRank
public int getRank() -
setDeclaringElement
-
getDeclaringElement
-
setDeclaringElementKind
public void setDeclaringElementKind(int kind) -
getDeclaringElementKind
public int getDeclaringElementKind() -
write
- Löst aus:
IOException
-
read
- Löst aus:
IOException
-
getGenericSignature
-
getErasureSignature
-
getSuperclass
-
setSuperclass
-