Typical descriptors are:
I Integer
[I Array of integer
Lpkg1/pkg2/Clazz; Class
Lpkg1/pkg2/Outer$Inner; Member class
| Modifier and Type | Field and Description |
|---|---|
| public static final String | BOOLEAN
The field descriptor for the primitive type BOOLEAN. |
| public static final String | BYTE
The field descriptor for the primitive type BYTE. |
| public static final String | CHAR
The field descriptor for the primitive type CHAR. |
| private static final Map | |
| private static final Map | |
| public static final String | DOUBLE
The field descriptor for the primitive type DOUBLE. |
| public static final String | FLOAT
The field descriptor for the primitive type FLOAT. |
| public static final String | INT
The field descriptor for the primitive type INT. |
| public static final String | JAVA_IO_SERIALIZABLE
The field descriptor for the interface |
| public static final String | JAVA_LANG_ANNOTATION_RETENTION
The field descriptor for the annotation |
| public static final String | JAVA_LANG_ASSERTIONERROR
The field descriptor for the class |
| public static final String | JAVA_LANG_BOOLEAN
The field descriptor for the class |
| public static final String | JAVA_LANG_BYTE
The field descriptor for the class |
| public static final String | JAVA_LANG_CHARACTER
The field descriptor for the class |
| public static final String | JAVA_LANG_CLASS
The field descriptor for the class |
| public static final String | JAVA_LANG_CLONEABLE
The field descriptor for the interface |
| public static final String | JAVA_LANG_DOUBLE
The field descriptor for the class |
| public static final String | JAVA_LANG_ENUM
The field descriptor for the class |
| public static final String | JAVA_LANG_ERROR
The field descriptor for the class |
| public static final String | JAVA_LANG_EXCEPTION
The field descriptor for the class |
| public static final String | JAVA_LANG_FLOAT
The field descriptor for the class |
| public static final String | JAVA_LANG_INTEGER
The field descriptor for the class |
| public static final String | JAVA_LANG_ITERABLE
The field descriptor for the interface |
| public static final String | JAVA_LANG_LONG
The field descriptor for the class |
| public static final String | JAVA_LANG_OBJECT
The field descriptor for the class |
| public static final String | JAVA_LANG_OVERRIDE
The field descriptor for the annotation |
| public static final String | JAVA_LANG_RUNTIMEEXCEPTION
The field descriptor for the class |
| public static final String | JAVA_LANG_SHORT
The field descriptor for the class |
| public static final String | JAVA_LANG_STRING
The field descriptor for the class |
| public static final String | JAVA_LANG_STRINGBUILDER
The field descriptor for the class |
| public static final String | JAVA_LANG_SYSTEM
The field descriptor for the class |
| public static final String | JAVA_LANG_THROWABLE
The field descriptor for the class |
| public static final String | JAVA_LANG_VOID
The field descriptor for the class |
| public static final String | JAVA_UTIL_ITERATOR
The field descriptor for the interface |
| public static final String | LONG
The field descriptor for the primitive type LONG. |
| public static final String | SHORT
The field descriptor for the primitive type SHORT. |
| public static final String | VOID
The field descriptor for the type |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | areInSamePackage(String d1, String d2)
Checks whether two reference types are declared in the same package. |
| public static String | fromClassName(String className)
Converts a class name as defined by "Class.getName()" into a descriptor. |
| public static String | fromInternalForm(String internalForm)
Converts a class name in the "internal form" as described in JVMS 4.2 into a descriptor. |
| public static String | |
| public static String | getPackageName(String d)
Returns the package name of a class or interface reference descriptor, or |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: Whether thisDescriptor describes a class or an interface (and not an array or a primitive type)
|
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: Whether thisDescriptor describes a reference (i.e. non-primitive) type
|
| public static short | |
| public static String | |
| public static String | |
| public static String | |
| private static int |
| BOOLEAN | back to summary |
|---|---|
| public static final String BOOLEAN The field descriptor for the primitive type BOOLEAN. | |
| BYTE | back to summary |
|---|---|
| public static final String BYTE The field descriptor for the primitive type BYTE. | |
| CHAR | back to summary |
|---|---|
| public static final String CHAR The field descriptor for the primitive type CHAR. | |
| CLASS_NAME_TO_DESCRIPTOR | back to summary |
|---|---|
| private static final Map<String, String> CLASS_NAME_TO_DESCRIPTOR | |
| DESCRIPTOR_TO_CLASSNAME | back to summary |
|---|---|
| private static final Map<String, String> DESCRIPTOR_TO_CLASSNAME | |
| DOUBLE | back to summary |
|---|---|
| public static final String DOUBLE The field descriptor for the primitive type DOUBLE. | |
| FLOAT | back to summary |
|---|---|
| public static final String FLOAT The field descriptor for the primitive type FLOAT. | |
| INT | back to summary |
|---|---|
| public static final String INT The field descriptor for the primitive type INT. | |
| JAVA_IO_SERIALIZABLE | back to summary |
|---|---|
| public static final String JAVA_IO_SERIALIZABLE The field descriptor for the interface | |
| JAVA_LANG_ANNOTATION_RETENTION | back to summary |
|---|---|
| public static final String JAVA_LANG_ANNOTATION_RETENTION The field descriptor for the annotation | |
| JAVA_LANG_ASSERTIONERROR | back to summary |
|---|---|
| public static final String JAVA_LANG_ASSERTIONERROR The field descriptor for the class | |
| JAVA_LANG_BOOLEAN | back to summary |
|---|---|
| public static final String JAVA_LANG_BOOLEAN The field descriptor for the class | |
| JAVA_LANG_BYTE | back to summary |
|---|---|
| public static final String JAVA_LANG_BYTE The field descriptor for the class | |
| JAVA_LANG_CHARACTER | back to summary |
|---|---|
| public static final String JAVA_LANG_CHARACTER The field descriptor for the class | |
| JAVA_LANG_CLASS | back to summary |
|---|---|
| public static final String JAVA_LANG_CLASS The field descriptor for the class | |
| JAVA_LANG_CLONEABLE | back to summary |
|---|---|
| public static final String JAVA_LANG_CLONEABLE The field descriptor for the interface | |
| JAVA_LANG_DOUBLE | back to summary |
|---|---|
| public static final String JAVA_LANG_DOUBLE The field descriptor for the class | |
| JAVA_LANG_ENUM | back to summary |
|---|---|
| public static final String JAVA_LANG_ENUM The field descriptor for the class | |
| JAVA_LANG_ERROR | back to summary |
|---|---|
| public static final String JAVA_LANG_ERROR The field descriptor for the class | |
| JAVA_LANG_EXCEPTION | back to summary |
|---|---|
| public static final String JAVA_LANG_EXCEPTION The field descriptor for the class | |
| JAVA_LANG_FLOAT | back to summary |
|---|---|
| public static final String JAVA_LANG_FLOAT The field descriptor for the class | |
| JAVA_LANG_INTEGER | back to summary |
|---|---|
| public static final String JAVA_LANG_INTEGER The field descriptor for the class | |
| JAVA_LANG_ITERABLE | back to summary |
|---|---|
| public static final String JAVA_LANG_ITERABLE The field descriptor for the interface | |
| JAVA_LANG_LONG | back to summary |
|---|---|
| public static final String JAVA_LANG_LONG The field descriptor for the class | |
| JAVA_LANG_OBJECT | back to summary |
|---|---|
| public static final String JAVA_LANG_OBJECT The field descriptor for the class | |
| JAVA_LANG_OVERRIDE | back to summary |
|---|---|
| public static final String JAVA_LANG_OVERRIDE The field descriptor for the annotation | |
| JAVA_LANG_RUNTIMEEXCEPTION | back to summary |
|---|---|
| public static final String JAVA_LANG_RUNTIMEEXCEPTION The field descriptor for the class | |
| JAVA_LANG_SHORT | back to summary |
|---|---|
| public static final String JAVA_LANG_SHORT The field descriptor for the class | |
| JAVA_LANG_STRING | back to summary |
|---|---|
| public static final String JAVA_LANG_STRING The field descriptor for the class | |
| JAVA_LANG_STRINGBUILDER | back to summary |
|---|---|
| public static final String JAVA_LANG_STRINGBUILDER The field descriptor for the class | |
| JAVA_LANG_SYSTEM | back to summary |
|---|---|
| public static final String JAVA_LANG_SYSTEM The field descriptor for the class | |
| JAVA_LANG_THROWABLE | back to summary |
|---|---|
| public static final String JAVA_LANG_THROWABLE The field descriptor for the class | |
| JAVA_LANG_VOID | back to summary |
|---|---|
| public static final String JAVA_LANG_VOID The field descriptor for the class | |
| JAVA_UTIL_ITERATOR | back to summary |
|---|---|
| public static final String JAVA_UTIL_ITERATOR The field descriptor for the interface | |
| LONG | back to summary |
|---|---|
| public static final String LONG The field descriptor for the primitive type LONG. | |
| SHORT | back to summary |
|---|---|
| public static final String SHORT The field descriptor for the primitive type SHORT. | |
| VOID | back to summary |
|---|---|
| public static final String VOID The field descriptor for the type | |
| Descriptor | back to summary |
|---|---|
| private Descriptor() | |
| areInSamePackage | back to summary |
|---|---|
| public static boolean areInSamePackage(String d1, String d2) Checks whether two reference types are declared in the same package. | |
| fromClassName | back to summary |
|---|---|
| public static String fromClassName(String className) Converts a class name as defined by "Class.getName()" into a descriptor. | |
| fromInternalForm | back to summary |
|---|---|
| public static String fromInternalForm(String internalForm) Converts a class name in the "internal form" as described in JVMS 4.2 into a descriptor. Also implements the encoding of array types as described in JVMS 4.4.1. | |
| getComponentDescriptor | back to summary |
|---|---|
public static String getComponentDescriptor(String d)
| |
| getPackageName | back to summary |
|---|---|
| public static String getPackageName(String d) Returns the package name of a class or interface reference descriptor, or
| |
| hasSize1 | back to summary |
|---|---|
public static boolean hasSize1(String d)
| |
| hasSize2 | back to summary |
|---|---|
public static boolean hasSize2(String d)
| |
| isArrayReference | back to summary |
|---|---|
public static boolean isArrayReference(String d)
| |
| isClassOrInterfaceReference | back to summary |
|---|---|
public static boolean isClassOrInterfaceReference(String d)
| |
| isPrimitive | back to summary |
|---|---|
public static boolean isPrimitive(String d)
| |
| isPrimitiveNumeric | back to summary |
|---|---|
public static boolean isPrimitiveNumeric(String d)
| |
| isReference | back to summary |
|---|---|
public static boolean isReference(String d)
| |
| size | back to summary |
|---|---|
public static short size(String d)
| |
| toClassName | back to summary |
|---|---|
| public static String toClassName(String d) Converts a field descriptor into a class name as defined by | |
| toInternalForm | back to summary |
|---|---|
| public static String toInternalForm(String d) Converts a descriptor into the "internal form" as defined by JVMS 4.2. | |
| toString | back to summary |
|---|---|
| public static String toString(String d) Pretty-prints the given descriptor.
| |
| toString | back to summary |
|---|---|
| private static int toString(String d, int idx, StringBuilder sb) | |