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
FelderModifizierer und TypFeldBeschreibungbooleanstatic final intstatic final TypeVariable[]static final intstatic final int -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTypeVariable(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 TypMethodeBeschreibungbooleancanBeBoundTo(ResolvedType candidate) answer true if the given type satisfies all of the bound constraints of this type variable.intgetName()intgetRank()Return complete signature, e.g.static TypeVariableresolve all the bounds of this type variablevoidsetAdditionalInterfaceBounds(UnresolvedType[] superInterfaces) voidvoidsetDeclaringElementKind(int kind) voidsetRank(int rank) voidsetSuperclass(UnresolvedType superclass) voidsetUpperBound(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
-