| Modifier and Type | Field and Description |
|---|---|
| public static final BasicType | |
| public static final BasicType | |
| public static final BasicType | |
| public static final ObjectType | |
| private static final ThreadLocal | |
| public static final BasicType | |
| public static final BasicType | |
| public static final BasicType | |
| public static final BasicType | |
| public static final Type[] | NO_ARGS
Empty array. |
| public static final ReferenceType | |
| public static final ObjectType | |
| public static final BasicType | |
| protected String | signature
Deprecated
(since 6.0) will be made private; do not access directly, use getter/setter
|
| public static final ObjectType | |
| public static final ObjectType | |
| public static final ObjectType | |
| protected byte | type
Deprecated
(since 6.0) will be made private; do not access directly, use getter/setter
|
| public static final Type | |
| public static final BasicType | VOID
Predefined constants |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| pack-priv static int | |
| public boolean | Returns: whether the Types are equalOverrides java. Indicates whether some other object is "equal to" this one. |
| public static Type[] | Returns: array of argument typessignature string such as (Ljava/lang/String;)V signature)Convert arguments of a method (signature) to an array of Type objects. |
| pack-priv static int | |
| public String | |
| public static String | Returns: method signature for given type(s).what the method returns returnType, final Type[] what are the argument types argTypes)Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I |
| public static Type | Returns: return typesignature string such as (Ljava/lang/String;)V signature)Convert return value of a method (signature) to a Type object. |
| pack-priv static int | |
| public static String | |
| public String | |
| public int | |
| public static Type | |
| public static Type | |
| public byte | |
| public static Type[] | |
| pack-priv static int | |
| public int | Returns: hash code of TypeOverrides java. Returns a hash code value for this object. |
| pack-priv static String | |
| public Type | normalizeForStackOrLocal()
boolean, short and char variable are considered as int in the stack or local variable area. |
| pack-priv static int | |
| public String | Returns: Type string, e.g. 'int[]'Overrides java. Returns a string representation of the object. |
| private static int | |
| private static void |
| BOOLEAN | back to summary |
|---|---|
| public static final BasicType BOOLEAN | |
| BYTE | back to summary |
|---|---|
| public static final BasicType BYTE | |
| CHAR | back to summary |
|---|---|
| public static final BasicType CHAR | |
| CLASS | back to summary |
|---|---|
| public static final ObjectType CLASS | |
| CONSUMED_CHARS | back to summary |
|---|---|
| private static final ThreadLocal<Integer> CONSUMED_CHARS | |
| DOUBLE | back to summary |
|---|---|
| public static final BasicType DOUBLE | |
| FLOAT | back to summary |
|---|---|
| public static final BasicType FLOAT | |
| INT | back to summary |
|---|---|
| public static final BasicType INT | |
| LONG | back to summary |
|---|---|
| public static final BasicType LONG | |
| NO_ARGS | back to summary |
|---|---|
| public static final Type[] NO_ARGS Empty array. | |
| NULL | back to summary |
|---|---|
| public static final ReferenceType NULL | |
| OBJECT | back to summary |
|---|---|
| public static final ObjectType OBJECT | |
| SHORT | back to summary |
|---|---|
| public static final BasicType SHORT | |
| signature | back to summary |
|---|---|
| protected String signature
Deprecated (since 6.0) will be made private; do not access directly, use getter/setter | |
| STRING | back to summary |
|---|---|
| public static final ObjectType STRING | |
| STRINGBUFFER | back to summary |
|---|---|
| public static final ObjectType STRINGBUFFER | |
| THROWABLE | back to summary |
|---|---|
| public static final ObjectType THROWABLE | |
| type | back to summary |
|---|---|
| protected byte type
Deprecated (since 6.0) will be made private; do not access directly, use getter/setter | |
| UNKNOWN | back to summary |
|---|---|
| public static final Type UNKNOWN | |
| VOID | back to summary |
|---|---|
| public static final BasicType VOID Predefined constants | |
| Type | back to summary |
|---|---|
| protected Type(final byte type, final String signature) | |
| consumed | back to summary |
|---|---|
| pack-priv static int consumed(final int coded) | |
| encode | back to summary |
|---|---|
| pack-priv static int encode(final int size, final int consumed) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getArgumentTypes | back to summary |
|---|---|
| public static Type[] getArgumentTypes(final String signature) Convert arguments of a method (signature) to an array of Type objects. | |
| getArgumentTypesSize | back to summary |
|---|---|
| pack-priv static int getArgumentTypesSize(final String signature) | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getMethodSignature | back to summary |
|---|---|
| public static String getMethodSignature(final Type returnType, final Type[] argTypes) Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I | |
| getReturnType | back to summary |
|---|---|
| public static Type getReturnType(final String signature) Convert return value of a method (signature) to a Type object. | |
| getReturnTypeSize | back to summary |
|---|---|
| pack-priv static int getReturnTypeSize(final String signature) | |
| getSignature | back to summary |
|---|---|
| public static String getSignature(final Method meth) | |
| getSignature | back to summary |
|---|---|
public String getSignature()
| |
| getSize | back to summary |
|---|---|
public int getSize()
| |
| getType | back to summary |
|---|---|
| public static Type getType(final Class<?> cls) Convert runtime | |
| getType | back to summary |
|---|---|
| public static Type getType(final String signature) throws StringIndexOutOfBoundsException Convert signature to a Type object. | |
| getType | back to summary |
|---|---|
public byte getType()
| |
| getTypes | back to summary |
|---|---|
| public static Type[] getTypes(final Class<?>[] classes) Convert runtime | |
| getTypeSize | back to summary |
|---|---|
| pack-priv static int getTypeSize(final String signature) throws StringIndexOutOfBoundsException | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| internalTypeNameToSignature | back to summary |
|---|---|
| pack-priv static String internalTypeNameToSignature(final String internalTypeName) | |
| normalizeForStackOrLocal | back to summary |
|---|---|
| public Type normalizeForStackOrLocal() boolean, short and char variable are considered as int in the stack or local variable area. Returns
| |
| size | back to summary |
|---|---|
| pack-priv static int size(final int coded) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unwrap | back to summary |
|---|---|
| private static int unwrap(final ThreadLocal<Integer> tl) | |
| wrap | back to summary |
|---|---|
| private static void wrap(final ThreadLocal<Integer> tl, final int value) | |