|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CType
org.multijava.mjc.CClassType
org.multijava.mjc.CTypeVariable
| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjc.CType |
CType.MethodSignature, CType.MethodSignatureParser, CType.StringBuffers, CType.TupleCollection |
| Field Summary | |
private CClassType[] |
bounds
|
private boolean |
checked
|
static CTypeVariable[] |
EMPTY
|
private String |
name
|
| Fields inherited from class org.multijava.mjc.CClassType |
arguments, EMPTY_ARG, index, universe |
| Fields inherited from class org.multijava.mjc.CType |
instance, isMethodTypeVariable, isTypeVariable, type |
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
CTypeVariable(String name,
CClassType[] bounds)
|
|
CTypeVariable(CTypeVariable tv)
|
|
| Method Summary | |
protected void |
appendDefinitionSignature(FastStringBuffer buffer)
Appends the generic signature of the definition of this type variable to the specified buffer. |
void |
appendGenericSignature(FastStringBuffer buffer)
Appends the generic signature (attribute) of this type variable to the specified buffer. |
void |
appendSignature(FastStringBuffer buffer)
Appends the VM signature of this type variable to the specified buffer. |
CType |
checkType(CContextType context)
Checks that this type is valid, throwing an exception if it is not. |
boolean |
equals(Object other)
Compares two objects for equality. |
boolean |
equals(CType other,
CClassType[] subst)
|
CClassType[] |
getBounds()
|
String |
getIdent()
|
int |
getIndex()
return the index of this type variable |
int |
hashCode()
Calculates the hash code for this |
boolean |
hasSameBound(CType other)
|
boolean |
isAlwaysAssignableTo(CType dest)
|
boolean |
isAlwaysAssignableTo(CType dest,
boolean inst)
Is this type assignable to the given type by assignment type conversion [JLS2 5.2] [JLS2 5.1.4] |
boolean |
isAlwaysAssignableTo(CType dest,
CClassType[] subst)
|
boolean |
isMethodTypeVariable()
|
void |
setIndex(int i)
set the index of the type variable to the given int |
void |
setMethodTypeVariable(boolean isMethodTypeVariable)
|
String |
toString()
Transforms this type to a string |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private CClassType[] bounds
private String name
private boolean checked
public static final CTypeVariable[] EMPTY
| Constructor Detail |
public CTypeVariable(String name,
CClassType[] bounds)
public CTypeVariable(CTypeVariable tv)
| Method Detail |
public String getIdent()
getIdent in class CTypepublic CClassType[] getBounds()
public CType checkType(CContextType context)
throws UnpositionedError
CClassType
checkType in class CClassTypeUnpositionedErrorpublic void setMethodTypeVariable(boolean isMethodTypeVariable)
setMethodTypeVariable in class CTypepublic boolean isMethodTypeVariable()
isMethodTypeVariable in class CTypepublic int hashCode()
CClassType
hashCode in class CClassTypepublic boolean equals(Object other)
CClassType
equals in class CClassType
public boolean equals(CType other,
CClassType[] subst)
equals in class CClassTypepublic boolean isAlwaysAssignableTo(CType dest)
CType
isAlwaysAssignableTo in class CClassType
public boolean isAlwaysAssignableTo(CType dest,
boolean inst)
CClassType
isAlwaysAssignableTo in class CClassType
public boolean isAlwaysAssignableTo(CType dest,
CClassType[] subst)
isAlwaysAssignableTo in class CClassTypepublic int getIndex()
getIndex in class CClassTypepublic void setIndex(int i)
setIndex in class CClassTypepublic String toString()
CClassTypealso assignable loadedClassInfo, thisClassInfo; ensures \not_modified(loadedClassInfo);
toString in class CClassTypepublic boolean hasSameBound(CType other)
public void appendGenericSignature(FastStringBuffer buffer)
appendGenericSignature in interface CTypeSignatureAppenderappendGenericSignature in class CTypepublic void appendSignature(FastStringBuffer buffer)
appendSignature in interface CTypeSignatureAppenderappendSignature in class CClassTypeprotected void appendDefinitionSignature(FastStringBuffer buffer)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||