Save This Page
Home » asm-3.1 » org.objectweb » asm » [javadoc | source]
org.objectweb.asm
public class: Type [javadoc | source]
java.lang.Object
   org.objectweb.asm.Type
A Java type. This class can be used to make it easier to manipulate type and method descriptors.
Field Summary
public static final  int VOID    The sort of the void type. See getSort
public static final  int BOOLEAN    The sort of the boolean type. See getSort
public static final  int CHAR    The sort of the char type. See getSort
public static final  int BYTE    The sort of the byte type. See getSort
public static final  int SHORT    The sort of the short type. See getSort
public static final  int INT    The sort of the int type. See getSort
public static final  int FLOAT    The sort of the float type. See getSort
public static final  int LONG    The sort of the long type. See getSort
public static final  int DOUBLE    The sort of the double type. See getSort
public static final  int ARRAY    The sort of array reference types. See getSort
public static final  int OBJECT    The sort of object reference type. See getSort
public static final  Type VOID_TYPE    The void type. 
public static final  Type BOOLEAN_TYPE    The boolean type. 
public static final  Type CHAR_TYPE    The char type. 
public static final  Type BYTE_TYPE    The byte type. 
public static final  Type SHORT_TYPE    The short type. 
public static final  Type INT_TYPE    The int type. 
public static final  Type FLOAT_TYPE    The float type. 
public static final  Type LONG_TYPE    The long type. 
public static final  Type DOUBLE_TYPE    The double type. 
Method from org.objectweb.asm.Type Summary:
equals,   getArgumentTypes,   getArgumentTypes,   getClassName,   getConstructorDescriptor,   getDescriptor,   getDescriptor,   getDimensions,   getElementType,   getInternalName,   getInternalName,   getMethodDescriptor,   getMethodDescriptor,   getObjectType,   getOpcode,   getReturnType,   getReturnType,   getSize,   getSort,   getType,   getType,   hashCode,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.objectweb.asm.Type Detail:
 public boolean equals(Object o) 
    Tests if the given object is equal to this type.
 public static Type[] getArgumentTypes(String methodDescriptor) 
    Returns the Java types corresponding to the argument types of the given method descriptor.
 public static Type[] getArgumentTypes(Method method) 
    Returns the Java types corresponding to the argument types of the given method.
 public String getClassName() 
    Returns the name of the class corresponding to this type.
 public static String getConstructorDescriptor(Constructor c) 
    Returns the descriptor corresponding to the given constructor.
 public String getDescriptor() 
    Returns the descriptor corresponding to this Java type.
 public static String getDescriptor(Class c) 
    Returns the descriptor corresponding to the given Java type.
 public int getDimensions() 
    Returns the number of dimensions of this array type. This method should only be used for an array type.
 public Type getElementType() 
    Returns the type of the elements of this array type. This method should only be used for an array type.
 public String getInternalName() 
    Returns the internal name of the class corresponding to this object or array type. The internal name of a class is its fully qualified name (as returned by Class.getName(), where '.' are replaced by '/'. This method should only be used for an object or array type.
 public static String getInternalName(Class c) 
    Returns the internal name of the given class. The internal name of a class is its fully qualified name, as returned by Class.getName(), where '.' are replaced by '/'.
 public static String getMethodDescriptor(Method m) 
    Returns the descriptor corresponding to the given method.
 public static String getMethodDescriptor(Type returnType,
    Type[] argumentTypes) 
    Returns the descriptor corresponding to the given argument and return types.
 public static Type getObjectType(String internalName) 
    Returns the Java type corresponding to the given internal name.
 public int getOpcode(int opcode) 
    Returns a JVM instruction opcode adapted to this Java type.
 public static Type getReturnType(String methodDescriptor) 
    Returns the Java type corresponding to the return type of the given method descriptor.
 public static Type getReturnType(Method method) 
    Returns the Java type corresponding to the return type of the given method.
 public int getSize() 
    Returns the size of values of this type.
 public int getSort() 
    Returns the sort of this Java type.
 public static Type getType(String typeDescriptor) 
    Returns the Java type corresponding to the given type descriptor.
 public static Type getType(Class c) 
    Returns the Java type corresponding to the given class.
 public int hashCode() 
    Returns a hash code value for this type.
 public String toString() 
    Returns a string representation of this type.