|
mjc | ||||||||||
| 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.CErasedClassType
This class represents class type in the type structure
| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjc.CType |
CType.MethodSignature, CType.MethodSignatureParser, CType.StringBuffers, CType.TupleCollection |
| Field Summary |
| Fields inherited from class org.multijava.mjc.CClassType |
arguments, EMPTY, 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 | |
CErasedClassType(CClass clazz)
Construct a class type |
|
| Method Summary | |
CType |
checkType(CContextType context)
check that type is valid necessary to resolve String into java/lang/String |
boolean |
equals(Object other)
equals |
boolean |
equals(CType other,
CClassType[] substitution)
|
CClass |
getCClass()
Returns the class object associated with this type. |
boolean |
isAlwaysAssignableTo(CType dest)
Can this type be converted to the specified type by assignment conversion (JLS 5.2) ? |
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[] substitution)
|
boolean |
isAssignableTo(CType dest)
|
protected boolean |
isChecked()
Returns true if this class type has been resolved to a CClass singleton. |
boolean |
isClassType()
Check if a type is a class type |
| 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 |
| Constructor Detail |
public CErasedClassType(CClass clazz)
clazz - the class that will represent this type| Method Detail |
protected boolean isChecked()
CClassType
isChecked in class CClassTypepublic CClass getCClass()
CClassType
getCClass in class CClassTypepublic boolean isClassType()
CClassType
isClassType in class CClassTypepublic boolean equals(Object other)
equals in class CClassType
public boolean equals(CType other,
CClassType[] substitution)
equals in class CClassType
public CType checkType(CContextType context)
throws UnpositionedError
checkType in class CClassTypecontext - the context (may be be null)
UnpositionedError - this error will be positioned soonpublic boolean isAlwaysAssignableTo(CType dest)
isAlwaysAssignableTo in class CClassTypedest - the destination type
public boolean isAlwaysAssignableTo(CType dest,
boolean inst)
CClassType
isAlwaysAssignableTo in class CClassType
public boolean isAlwaysAssignableTo(CType dest,
CClassType[] substitution)
isAlwaysAssignableTo in class CClassTypepublic boolean isAssignableTo(CType dest)
isAssignableTo in class CClassType
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||