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

Variable Index

 o boolean_ctype
 o boolean_type
 o booleanValue_method
 o byte_type
 o char_type
 o double_type
 o doubleValue_method
 o float_type
 o floatValue_method
 o int_type
 o intValue_method
 o long_type
 o longValue_method
 o number_type
 o pointer_type
 o reflectClass
 o short_type
 o string_type
 o toString_method
 o typeArray0
 o void_type

Method Index

 o coerceFromObject(Object)
Convert an object to a value of this Type.
 o coerceToObject(Object)
 o emitCoerceFromObject(CodeAttr)
Compile code to coerce/convert from Object to this type.
 o emitCoerceToObject(CodeAttr)
Compile code to convert an object (on the stack) to this Type.
 o emitIsInstance(CodeAttr)
 o getName()
 o getReflectClass()
Get the java.lang.Class object for the representation type.
 o getSignature()
 o isInstance(Object)
 o isValidJavaTypeName(String)
 o make(Class)
 o promote()
 o setSignature(String)
 o signatureLength(String)
 o signatureLength(String, int)
Return the length of the signature starting at a given string position.
 o signatureToName(String)
Returns the Java-level type name from a given signature.
 o signatureToPrimitive(char)
Returns the primitive type corresponding to a signature character.
 o signatureToType(String)
Get a Type corresponding to the given signature string.
 o signatureToType(String, int, int)
Get a Type corresponding to the given signature string.
 o toString()

Variables

 o byte_type
 public static Type byte_type
 o short_type
 public static Type short_type
 o int_type
 public static Type int_type
 o long_type
 public static Type long_type
 o float_type
 public static Type float_type
 o double_type
 public static Type double_type
 o boolean_type
 public static Type boolean_type
 o char_type
 public static Type char_type
 o void_type
 public static Type void_type
 o pointer_type
 public static ClassType pointer_type
 o string_type
 public static ClassType string_type
 o boolean_ctype
 public static ClassType boolean_ctype
 o typeArray0
 public static Type typeArray0[]
 o toString_method
 public static Method toString_method
 o number_type
 public static ClassType number_type
 o intValue_method
 public static Method intValue_method
 o longValue_method
 public static Method longValue_method
 o floatValue_method
 public static Method floatValue_method
 o doubleValue_method
 public static Method doubleValue_method
 o booleanValue_method
 public static Method booleanValue_method
 o reflectClass
 protected Class reflectClass

Methods

 o make
 public static Type make(Class reflectClass)
 o getSignature
 public final String getSignature()
 o setSignature
 protected void setSignature(String sig)
 o promote
 public Type promote()
 o 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.
 o signatureToType
 public static Type signatureToType(String sig,
                                    int off,
                                    int len)
Get a Type corresponding to the given signature string.

 o signatureToType
 public static Type signatureToType(String sig)
Get a Type corresponding to the given signature string.

 o 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.

 o signatureLength
 public static int signatureLength(String sig)
 o signatureToName
 public static String signatureToName(String sig)
Returns the Java-level type name from a given signature. Returns null for an invalid signature.

 o getName
 public final String getName()
 o isValidJavaTypeName
 public static boolean isValidJavaTypeName(String name)
 o isInstance
 public boolean isInstance(Object obj)
 o emitIsInstance
 public void emitIsInstance(CodeAttr code)
 o coerceFromObject
 public abstract Object coerceFromObject(Object obj)
Convert an object to a value of this Type. Throw a ClassCastException when this is not possible.

 o coerceToObject
 public Object coerceToObject(Object obj)
 o emitCoerceToObject
 public void emitCoerceToObject(CodeAttr code)
Compile code to convert an object (on the stack) to this Type.

 o emitCoerceFromObject
 public void emitCoerceFromObject(CodeAttr code)
Compile code to coerce/convert from Object to this type.

 o getReflectClass
 public Class getReflectClass()
Get the java.lang.Class object for the representation type.

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index