| |
|
| java.lang.Object gnu.bytecode.Type gnu.bytecode.ObjectType
All known Subclasses: gnu.bytecode.TypeVariable, gnu.bytecode.ClassType, gnu.bytecode.ArrayType, gnu.bytecode.ParameterizedType,
ObjectType | public class ObjectType extends Type (Code) | | Semi-abstract class object reference types.
Extended by ClassType and ArrayType.
|
ADD_FIELDS_DONE | final static int ADD_FIELDS_DONE(Code) | | |
ADD_METHODS_DONE | final static int ADD_METHODS_DONE(Code) | | |
EXISTING_CLASS | final static int EXISTING_CLASS(Code) | | |
ObjectType | protected ObjectType()(Code) | | |
coerceFromObject | public Object coerceFromObject(Object obj)(Code) | | Convert an object to a value of this Type.
Throw a ClassCastException when this is not possible.
|
emitCoerceFromObject | public void emitCoerceFromObject(CodeAttr code)(Code) | | Compile (in given method) cast from Object to this Type.
|
getImplementationType | public Type getImplementationType()(Code) | | |
getInternalName | public String getInternalName()(Code) | | Returns class name if a class type, signature if an array type.
In both cases, uses '/' rather than '.' after packages prefixes.
Seems rather arbitrary - but that is how classes are represented
in the constant pool (CONSTANT_Class constants).
Also, Class.forName is the same, except using '.'.
|
getReflectClass | public Class getReflectClass()(Code) | | Get the java.lang.Class object for the representation type.
|
isAssignableTo | public boolean isAssignableTo(Type other)(Code) | | |
setExisting | final public void setExisting(boolean existing)(Code) | | Asserts wether we expect this class to already exist.
Parameters: existing - true iff there must be a corresponding bytecode class.false otherwise. |
Methods inherited from gnu.bytecode.Type | abstract public Object coerceFromObject(Object obj)(Code)(Java Doc) public Object coerceToObject(Object obj)(Code)(Java Doc) abstract public int compare(Type other)(Code)(Java Doc) public void emitCoerceFrom(Type fromType, CodeAttr code)(Code)(Java Doc) public void emitCoerceFromObject(CodeAttr code)(Code)(Java Doc) public void emitCoerceTo(Type toType, CodeAttr code)(Code)(Java Doc) public void emitCoerceToObject(CodeAttr code)(Code)(Java Doc) public void emitIsInstance(CodeAttr code)(Code)(Java Doc) public static void flushTypeChanges()(Code)(Java Doc) public static void free(java.util.Map t)(Code)(Java Doc) public static Type fullSignatureToType(String sig, int[] offset)(Code)(Java Doc) public Type getImplementationType()(Code)(Java Doc) static java.util.Hashtable getMapNameToType()(Code)(Java Doc) public String getName()(Code)(Java Doc) public java.lang.Class getReflectClass()(Code)(Java Doc) final public String getSignature()(Code)(Java Doc) final public int getSize()(Code)(Java Doc) public static Type getType(String name)(Code)(Java Doc) public boolean isArray()(Code)(Java Doc) abstract public boolean isAssignableTo(Type other)(Code)(Java Doc) public boolean isInstance(Object obj)(Code)(Java Doc) public static boolean isMoreSpecific(Type[] t1, Type[] t2)(Code)(Java Doc) public boolean isSubtype(Type other)(Code)(Java Doc) public static boolean isValidJavaTypeName(String name)(Code)(Java Doc) final public boolean isVoid()(Code)(Java Doc) public static Type lookupType(String name)(Code)(Java Doc) public static Type lowestCommonSuperType(Type t1, Type t2)(Code)(Java Doc) public static Type make(Class reflectClass)(Code)(Java Doc) public Type promote()(Code)(Java Doc) Method refineMethod(Method method)(Code)(Java Doc) public static void registerTypeForClass(Class clas, Type type)(Code)(Java Doc) public static void registerTypeForName(String name, Type type)(Code)(Java Doc) public static void reset()(Code)(Java Doc) protected void setSignature(String sig)(Code)(Java Doc) public static int signatureLength(String sig, int pos)(Code)(Java Doc) public static int signatureLength(String sig)(Code)(Java Doc) public static String signatureToName(String sig)(Code)(Java Doc) public static PrimType signatureToPrimitive(char sig)(Code)(Java Doc) public static Type signatureToType(String sig, int off, int len)(Code)(Java Doc) public static Type signatureToType(String sig)(Code)(Java Doc) protected static int swappedCompareResult(int code)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|
|