|
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.CNullType
This class represents null class type in the type structure
CType| 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 | |
CNullType()
Construct a class type |
|
| Method Summary | |
CClass |
getCClass()
Returns the class object associated with this type. |
protected CClass |
getObject()
get the object, if this type was never checked (reads from class files) check it! |
int |
getSize()
Returns the size used in stack by value of this type |
boolean |
implicitlyCastTo(CType dest)
implicitlyCastTo |
boolean |
isAlwaysAssignableTo(CType dest)
Is this type assignable to the given type by assignment type conversion [JLS2 5.2] [JLS2 5.1.4]. |
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 |
isCastableTo(CType dest)
isCastableTo |
boolean |
needsUncheckedConversion(CType dest)
Returns whether unchecked conversion (JLS3 5.1.9) is required in order to convert from this type to the given type dest. |
String |
toString()
Transforms this type to a string |
String |
toVerboseString()
For the null literal the universe annotation is not meaningful. |
| 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 CNullType()
| Method Detail |
public 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[] subst)
isAlwaysAssignableTo in class CClassTypepublic boolean isCastableTo(CType dest)
isCastableTo in class CClassTypedest - the destination type
public boolean implicitlyCastTo(CType dest)
implicitlyCastTo in class CClassTypedest - the expression type to cast to
public boolean needsUncheckedConversion(CType dest)
CTypedest.
needsUncheckedConversion in class CClassTypeprotected CClass getObject()
public CClass getCClass()
getCClass in class CClassTypepublic String toString()
toString in class CClassTypepublic String toVerboseString()
toVerboseString in class CClassTypepublic int getSize()
getSize in class CClassType
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||