|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.bytecode.Type gnu.bytecode.PrimType
public class PrimType
Field Summary |
---|
Fields inherited from class gnu.bytecode.Type |
---|
boolean_ctype, boolean_type, booleanValue_method, byte_type, char_type, double_type, doubleValue_method, float_type, floatValue_method, int_type, intValue_method, java_lang_Class_type, long_type, longValue_method, neverReturnsType, nullType, number_type, pointer_type, reflectClass, short_type, string_type, throwable_type, toString_method, tostring_type, typeArray0, void_type |
Constructor Summary | |
---|---|
protected |
PrimType(PrimType type)
|
|
PrimType(java.lang.String nam,
java.lang.String sig,
int siz,
java.lang.Class reflectClass)
|
Method Summary | |
---|---|
static boolean |
booleanValue(java.lang.Object value)
Coerce value to a boolean. |
char |
charValue(java.lang.Object value)
Coerce value to a char. |
java.lang.Object |
coerceFromObject(java.lang.Object obj)
Convert an object to a value of this Type. |
static int |
compare(PrimType type1,
PrimType type2)
|
int |
compare(Type other)
Return a numeric code showing "subtype" relationship: 1: if other is a pure subtype of this; 0: if has the same values; -1: if this is a pure subtype of other; -2: if they have values in common but neither is a subtype of the other; -3: if the types have no values in common. |
void |
emitCoerceFromObject(CodeAttr code)
Compile code to coerce/convert from Object to this type. |
void |
emitCoerceToObject(CodeAttr code)
Compile code to convert a object of this type on the stack to Object. |
void |
emitIsInstance(CodeAttr code)
|
Methods inherited from class gnu.bytecode.Type |
---|
coerceToObject, getImplementationType, getName, getReflectClass, getSignature, getSize, getType, hashCode, isInstance, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, promote, registerTypeForClass, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimType(java.lang.String nam, java.lang.String sig, int siz, java.lang.Class reflectClass)
protected PrimType(PrimType type)
Method Detail |
---|
public java.lang.Object coerceFromObject(java.lang.Object obj)
Type
coerceFromObject
in class Type
public char charValue(java.lang.Object value)
public static boolean booleanValue(java.lang.Object value)
public void emitCoerceToObject(CodeAttr code)
Type
emitCoerceToObject
in class Type
public void emitIsInstance(CodeAttr code)
emitIsInstance
in class Type
public void emitCoerceFromObject(CodeAttr code)
Type
emitCoerceFromObject
in class Type
public static int compare(PrimType type1, PrimType type2)
public int compare(Type other)
Type
compare
in class Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |