| java.lang.Object | |
| ↳ | org.sonatype.guice.bean.scanners.asm.Type |
A Java 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 | OBJECT | The sort of object reference type. | |||||||||
| 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 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 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 given class.
| |||||||||||
Returns the internal name of the class corresponding to this object or
array type.
| |||||||||||
Returns the descriptor corresponding to the given method.
| |||||||||||
Returns the descriptor corresponding to the given argument and return
types.
| |||||||||||
Returns the Java type corresponding to the given internal name.
| |||||||||||
Returns a JVM instruction opcode adapted to this Java 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 type corresponding to the given type descriptor.
| |||||||||||
Returns the Java type corresponding to the given class.
| |||||||||||
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 object reference type. 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 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 binary name of the class corresponding to this type.
Returns the descriptor corresponding to the given constructor.
| c | a 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 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 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 descriptor corresponding to the given method.
| m | a Method object. |
|---|
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 Java type corresponding to the given internal name.
| internalName | an internal name. |
|---|
Returns a JVM instruction opcode adapted to this Java type.
| 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 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.
Returns the Java type corresponding to the given type descriptor.
| typeDescriptor | a type descriptor. |
|---|
Returns the Java type corresponding to the given class.
| c | a class. |
|---|
Returns a hash code value for this type.
Returns a string representation of this type.