| java.lang.Object | |
| ↳ | org.eclipse.sisu.space.asm.Type |
A Java field or method type. This class can be used to make it easier to manipulate type and method descriptors.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ARRAY | The sort of array reference types. | |||||||||
| int | BOOLEAN | The sort of the boolean type. | |||||||||
| int | BYTE | The sort of the byte type. | |||||||||
| int | CHAR | The sort of the char type. | |||||||||
| int | DOUBLE | The sort of the double type. | |||||||||
| int | FLOAT | The sort of the float type. | |||||||||
| int | INT | The sort of the int type. | |||||||||
| int | LONG | The sort of the long type. | |||||||||
| int | METHOD | The sort of method types. | |||||||||
| int | OBJECT | The sort of object reference types. | |||||||||
| int | SHORT | The sort of the short type. | |||||||||
| int | VOID | The sort of the void type. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BOOLEAN_TYPE | The boolean type. | ||||||||||
| BYTE_TYPE | The byte type. | ||||||||||
| CHAR_TYPE | The char type. | ||||||||||
| DOUBLE_TYPE | The double type. | ||||||||||
| FLOAT_TYPE | The float type. | ||||||||||
| INT_TYPE | The int type. | ||||||||||
| LONG_TYPE | The long type. | ||||||||||
| SHORT_TYPE | The short type. | ||||||||||
| VOID_TYPE | The void type. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Tests if the given object is equal to this type.
| |||||||||||
Returns the argument types of methods of this type.
| |||||||||||
Returns the Java types corresponding to the argument types of the given
method.
| |||||||||||
Returns the Java types corresponding to the argument types of the given
method descriptor.
| |||||||||||
Computes the size of the arguments and of the return value of a method.
| |||||||||||
Returns the size of the arguments and of the return value of methods of
this type.
| |||||||||||
Returns the binary name of the class corresponding to this type.
| |||||||||||
Returns the descriptor corresponding to the given constructor.
| |||||||||||
Returns the descriptor corresponding to this Java type.
| |||||||||||
Returns the descriptor corresponding to the given Java type.
| |||||||||||
Returns the number of dimensions of this array type.
| |||||||||||
Returns the type of the elements of this array type.
| |||||||||||
Returns the internal name of the class corresponding to this object or
array type.
| |||||||||||
Returns the internal name of the given class.
| |||||||||||
Returns the descriptor corresponding to the given argument and return
types.
| |||||||||||
Returns the descriptor corresponding to the given method.
| |||||||||||
Returns the Java method type corresponding to the given argument and
return types.
| |||||||||||
Returns the Java type corresponding to the given method descriptor.
| |||||||||||
Returns the Java type corresponding to the given internal name.
| |||||||||||
Returns a JVM instruction opcode adapted to this Java type.
| |||||||||||
Returns the return type of methods of this type.
| |||||||||||
Returns the Java type corresponding to the return type of the given
method.
| |||||||||||
Returns the Java type corresponding to the return type of the given
method descriptor.
| |||||||||||
Returns the size of values of this type.
| |||||||||||
Returns the sort of this Java type.
| |||||||||||
Returns the Java method type corresponding to the given constructor.
| |||||||||||
Returns the Java type corresponding to the given class.
| |||||||||||
Returns the Java type corresponding to the given type descriptor.
| |||||||||||
Returns the Java method type corresponding to the given method.
| |||||||||||
Returns a hash code value for this type.
| |||||||||||
Returns a string representation of this type.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The sort of array reference types. See getSort.
The sort of the boolean type. See getSort.
The sort of the double type. See getSort.
The sort of the float type. See getSort.
The sort of method types. See getSort.
The sort of object reference types. See getSort.
The sort of the short type. See getSort.
Tests if the given object is equal to this type.
| o | the object to be compared to this type. |
|---|
Returns the argument types of methods of this type. This method should only be used for method types.
Returns the Java types corresponding to the argument types of the given method.
| method | a method. |
|---|
Returns the Java types corresponding to the argument types of the given method descriptor.
| methodDescriptor | a method descriptor. |
|---|
Computes the size of the arguments and of the return value of a method.
| desc | the descriptor of a method. |
|---|
Returns the size of the arguments and of the return value of methods of this type. This method should only be used for method types.
Returns the binary name of the class corresponding to this type. This method must not be used on method types.
Returns the descriptor corresponding to the given constructor.
| c | a Constructor Constructor object. |
|---|
Returns the descriptor corresponding to this Java type.
Returns the descriptor corresponding to the given Java type.
| c | an object class, a primitive class or an array class. |
|---|
Returns the number of dimensions of this array type. This method should only be used for an array type.
Returns the type of the elements of this array type. This method should only be used for an array type.
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.
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 '/'.
| c | an object or array class. |
|---|
Returns the descriptor corresponding to the given argument and return types.
| returnType | the return type of the method. |
|---|---|
| argumentTypes | the argument types of the method. |
Returns the descriptor corresponding to the given method.
| m | a Method object. |
|---|
Returns the Java method type corresponding to the given argument and return types.
| returnType | the return type of the method. |
|---|---|
| argumentTypes | the argument types of the method. |
Returns the Java type corresponding to the given method descriptor.
Equivalent to Type.getType(methodDescriptor).
| methodDescriptor | a method descriptor. |
|---|
Returns the Java type corresponding to the given internal name.
| internalName | an internal name. |
|---|
Returns a JVM instruction opcode adapted to this Java type. This method must not be used for method types.
| opcode | a JVM instruction opcode. This opcode must be one of ILOAD, ISTORE, IALOAD, IASTORE, IADD, ISUB, IMUL, IDIV, IREM, INEG, ISHL, ISHR, IUSHR, IAND, IOR, IXOR and IRETURN. |
|---|
Returns the return type of methods of this type. This method should only be used for method types.
Returns the Java type corresponding to the return type of the given method.
| method | a method. |
|---|
Returns the Java type corresponding to the return type of the given method descriptor.
| methodDescriptor | a method descriptor. |
|---|
Returns the size of values of this type. This method must not be used for method types.
Returns the Java method type corresponding to the given constructor.
| c | a Constructor object. |
|---|
Returns the Java type corresponding to the given class.
| c | a class. |
|---|
Returns the Java type corresponding to the given type descriptor.
| typeDescriptor | a field or method type descriptor. |
|---|
Returns the Java method type corresponding to the given method.
| m | a Method object. |
|---|
Returns a hash code value for this type.
Returns a string representation of this type.