|
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.CBooleanType
This class represents the Java boolean type.
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.CType |
EMPTY, instance, isMethodTypeVariable, isTypeVariable, type |
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
protected |
CBooleanType()
Constructor |
| Method Summary | |
void |
appendSignature(FastStringBuffer buff)
Transforms this type to a string |
CType |
checkType(CContextType context)
Checks that this type is valid, throwing an exception if it is not. |
String |
getSignature()
Transforms this type to a string |
int |
getSize()
Returns the size used in stack by value of this type |
boolean |
isAlwaysAssignableTo(CType dest)
Is this type assignable to the given type by assignment type conversion [JLS2 5.2]. |
boolean |
isBoolean()
Check if a type is the boolean type |
boolean |
isCastableTo(CType dest)
Can this type be converted to the specified type by casting conversion (JLS 5.5) ? |
boolean |
isCodedAsInt()
|
void |
resolveValueType(CExpressionContextType context)
Compute the value of a specializer expression used to dispatch on a compile-time constant. |
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 |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected CBooleanType()
| Method Detail |
public boolean isBoolean()
isBoolean in class CTypepublic String toString()
toString in class CTypepublic String getSignature()
getSignature in class CTypepublic void appendSignature(FastStringBuffer buff)
public int getSize()
public boolean isCodedAsInt()
isCodedAsInt in class CType
public CType checkType(CContextType context)
throws UnpositionedError
context - the context in which this type was
declared, may be null
UnpositionedError - this unpositioned error
should be positioned
by the calling node of
the AST, typically by
calling the
addPosition method of
UnpositionedError
public void resolveValueType(CExpressionContextType context)
throws PositionedError
context - the context in which this class
declaration appears
PositionedError - if the check fails public boolean isAlwaysAssignableTo(CType dest)
dest - the destination type
public boolean isCastableTo(CType dest)
dest - the destination type
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||