All Packages Class Hierarchy This Package Previous Next Index
Class gnu.bytecode.Type
java.lang.Object
|
+----gnu.bytecode.Type
- public abstract class Type
- extends Object
-
boolean_ctype
-
-
boolean_type
-
-
booleanValue_method
-
-
byte_type
-
-
char_type
-
-
double_type
-
-
doubleValue_method
-
-
float_type
-
-
floatValue_method
-
-
int_type
-
-
intValue_method
-
-
long_type
-
-
longValue_method
-
-
number_type
-
-
pointer_type
-
-
reflectClass
-
-
short_type
-
-
string_type
-
-
toString_method
-
-
typeArray0
-
-
void_type
-
-
coerceFromObject(Object)
- Convert an object to a value of this Type.
-
coerceToObject(Object)
-
-
emitCoerceFromObject(CodeAttr)
- Compile code to coerce/convert from Object to this type.
-
emitCoerceToObject(CodeAttr)
- Compile code to convert an object (on the stack) to this Type.
-
emitIsInstance(CodeAttr)
-
-
getName()
-
-
getReflectClass()
- Get the java.lang.Class object for the representation type.
-
getSignature()
-
-
isInstance(Object)
-
-
isValidJavaTypeName(String)
-
-
make(Class)
-
-
promote()
-
-
setSignature(String)
-
-
signatureLength(String)
-
-
signatureLength(String, int)
- Return the length of the signature starting at a given string position.
-
signatureToName(String)
- Returns the Java-level type name from a given signature.
-
signatureToPrimitive(char)
- Returns the primitive type corresponding to a signature character.
-
signatureToType(String)
- Get a Type corresponding to the given signature string.
-
signatureToType(String, int, int)
- Get a Type corresponding to the given signature string.
-
toString()
-
byte_type
public static Type byte_type
short_type
public static Type short_type
int_type
public static Type int_type
long_type
public static Type long_type
float_type
public static Type float_type
double_type
public static Type double_type
boolean_type
public static Type boolean_type
char_type
public static Type char_type
void_type
public static Type void_type
pointer_type
public static ClassType pointer_type
string_type
public static ClassType string_type
boolean_ctype
public static ClassType boolean_ctype
typeArray0
public static Type typeArray0[]
toString_method
public static Method toString_method
number_type
public static ClassType number_type
intValue_method
public static Method intValue_method
longValue_method
public static Method longValue_method
floatValue_method
public static Method floatValue_method
doubleValue_method
public static Method doubleValue_method
booleanValue_method
public static Method booleanValue_method
reflectClass
protected Class reflectClass
make
public static Type make(Class reflectClass)
getSignature
public final String getSignature()
setSignature
protected void setSignature(String sig)
promote
public Type promote()
signatureToPrimitive
public static Type signatureToPrimitive(char sig)
- Returns the primitive type corresponding to a signature character.
- Returns:
- a primitive type, or null if there is no such type.
signatureToType
public static Type signatureToType(String sig,
int off,
int len)
- Get a Type corresponding to the given signature string.
signatureToType
public static Type signatureToType(String sig)
- Get a Type corresponding to the given signature string.
signatureLength
public static int signatureLength(String sig,
int pos)
- Return the length of the signature starting at a given string position.
Returns -1 for an invalid signature.
signatureLength
public static int signatureLength(String sig)
signatureToName
public static String signatureToName(String sig)
- Returns the Java-level type name from a given signature.
Returns null for an invalid signature.
getName
public final String getName()
isValidJavaTypeName
public static boolean isValidJavaTypeName(String name)
isInstance
public boolean isInstance(Object obj)
emitIsInstance
public void emitIsInstance(CodeAttr code)
coerceFromObject
public abstract Object coerceFromObject(Object obj)
- Convert an object to a value of this Type.
Throw a ClassCastException when this is not possible.
coerceToObject
public Object coerceToObject(Object obj)
emitCoerceToObject
public void emitCoerceToObject(CodeAttr code)
- Compile code to convert an object (on the stack) to this Type.
emitCoerceFromObject
public void emitCoerceFromObject(CodeAttr code)
- Compile code to coerce/convert from Object to this type.
getReflectClass
public Class getReflectClass()
- Get the java.lang.Class object for the representation type.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index