public class TypeVariable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
isResolved |
static int |
METHOD |
static TypeVariable[] |
NONE |
static int |
TYPE |
static int |
UNKNOWN |
Constructor and Description |
---|
TypeVariable(java.lang.String name)
Constructor for an unbound type variable, eg.
|
TypeVariable(java.lang.String name,
UnresolvedType anUpperBound) |
TypeVariable(java.lang.String name,
UnresolvedType anUpperBound,
UnresolvedType[] superInterfaces) |
public static final TypeVariable[] NONE
public static final int UNKNOWN
public static final int METHOD
public static final int TYPE
public boolean isResolved
public TypeVariable(java.lang.String name)
public TypeVariable(java.lang.String name, UnresolvedType anUpperBound)
public TypeVariable(java.lang.String name, UnresolvedType anUpperBound, UnresolvedType[] superInterfaces)
public UnresolvedType getFirstBound()
public UnresolvedType getUpperBound()
public UnresolvedType[] getSuperInterfaces()
public java.lang.String getName()
public TypeVariable resolve(World world)
public boolean canBeBoundTo(ResolvedType candidate)
public void setUpperBound(UnresolvedType superclass)
public void setAdditionalInterfaceBounds(UnresolvedType[] superInterfaces)
public java.lang.String toDebugString()
public java.lang.String getDisplayName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getSignature()
public java.lang.String getSignatureForAttribute()
public void setRank(int rank)
public int getRank()
public void setDeclaringElement(TypeVariableDeclaringElement element)
public TypeVariableDeclaringElement getDeclaringElement()
public void setDeclaringElementKind(int kind)
public int getDeclaringElementKind()
public void write(CompressingDataOutputStream s) throws java.io.IOException
java.io.IOException
public static TypeVariable read(VersionedDataInputStream s) throws java.io.IOException
java.io.IOException
public java.lang.String getGenericSignature()
public java.lang.String getErasureSignature()
public UnresolvedType getSuperclass()
public void setSuperclass(UnresolvedType superclass)