ofDescriptor
Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.
- API Note:
- A field type descriptor string for a non-array type is either a one-letter code corresponding to a primitive type (
"J", "I", "C", "S", "B", "D", "F", "Z", "V" ), or the letter "L" , followed by the fully qualified binary name of a class, followed by ";" . A field type descriptor for an array type is the character "[" followed by the field descriptor for the component type. Examples of valid type descriptor strings include "Ljava/lang/String;" , "I" , "[I" , "V" , "[Ljava/lang/String;" , etc. See JVMS 4.3.2 ("Field Descriptors") for more detail.
- Parameters:
-
descriptor - a field descriptor string
- Returns:
- a ClassDesc describing the desired class
- Throws:
-
NullPointerException - if the argument is null
-
IllegalArgumentException - if the name string is not in the correct format
- See Java Virtual Machine Specification :
-
4.3.2 Field Descriptors
4.4.1 The CONSTANT_Class_info Structure
-
See Also:
-
|
ofDescriptor
Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.
- API Note:
- A field type descriptor string for a non-array type is either a one-letter code corresponding to a primitive type (
"J", "I", "C", "S", "B", "D", "F", "Z", "V" ), or the letter "L" , followed by the fully qualified binary name of a class, followed by ";" . A field type descriptor for an array type is the character "[" followed by the field descriptor for the component type. Examples of valid type descriptor strings include "Ljava/lang/String;" , "I" , "[I" , "V" , "[Ljava/lang/String;" , etc. See JVMS 4.3.2 ("Field Descriptors") for more detail.
- Parameters:
-
descriptor - a field descriptor string
- Returns:
- a ClassDesc describing the desired class
- Throws:
-
NullPointerException - if the argument is null
-
IllegalArgumentException - if the name string is not in the correct format
- See Java Virtual Machine Specification :
-
4.3.2 Field Descriptors
4.4.1 The CONSTANT_Class_info Structure
|
ofDescriptor
Returns a ClassDesc given a descriptor string for a class, interface, array, or primitive type.
- API Note:
- A field type descriptor string for a non-array type is either a one-letter code corresponding to a primitive type (
"J", "I", "C", "S", "B", "D", "F", "Z", "V" ), or the letter "L" , followed by the fully qualified binary name of a class, followed by ";" . A field type descriptor for an array type is the character "[" followed by the field descriptor for the component type. Examples of valid type descriptor strings include "Ljava/lang/String;" , "I" , "[I" , "V" , "[Ljava/lang/String;" , etc. See JVMS 4.3.2 ("Field Descriptors") for more detail.
- Parameters:
-
descriptor - a field descriptor string
- Returns:
- a ClassDesc describing the desired class
- Throws:
-
NullPointerException - if the argument is null
-
IllegalArgumentException - if the name string is not in the correct format
- See Java Virtual Machine Specification :
-
4.3.2 Field Descriptors
4.4.1 The CONSTANT_Class_info Structure
- See Also:
-
|
|