java.lang.constant.
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassDesc | |
| public static ClassDesc | |
| public static final ClassDesc[] | |
| public static final ConstantDesc[] | EMPTY_CONSTANTDESC
an empty constant descriptor |
| private static final JavaLangAccess | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| private static final char | |
| public static final int | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| pack-priv static IllegalArgumentException | |
| public static ClassDesc | binaryNameToDesc(String
a binary name binaryName)Creates a ClassDesc from a pre-validated binary name for a class or interface type. |
| public static String | |
| public static ClassDesc | |
| public static String | |
| public static String | |
| public static PrimitiveClassDescImpl | |
| public static ClassDesc | internalNameToDesc(String
a binary name internalName)Creates a ClassDesc from a pre-validated internal name for a class or interface type. |
| public static String | |
| pack-priv static String | |
| pack-priv static IllegalArgumentException | |
| private static IllegalArgumentException | |
| public static MethodTypeDesc | methodTypeDesc(MethodType type)
Creates a MethodTypeDesc from a MethodType object, requires that the type can be described nominally, i.e. all of its return type and parameter types can be described nominally. |
| public static MethodTypeDesc | methodTypeDesc(Class<?> returnType, Class<?>[] parameterTypes)
Creates a MethodTypeDesc from return class and parameter class objects, requires that all of them can be described nominally. |
| public static ClassDesc | parseReferenceTypeDesc(String
a field descriptor string for a class or interface type descriptor)Creates a ClassDesc from a descriptor string for a class or interface type or an array type. |
| public static ClassDesc | referenceClassDesc(Class<?> type)
Creates a ClassDesc from a Class object representing a non-hidden class or interface or an array type with a non-hidden component type. |
| public static ClassDesc | referenceClassDesc(String
a field descriptor string for a class or interface type descriptor)Creates a ClassDesc from a pre-validated descriptor string for a class or interface type or an array type. |
| pack-priv static ClassDesc | |
| pack-priv static int | Returns: the length of the descriptor, or 0 if it is not a descriptorthe descriptor string descriptor, int the starting index into the string start, int the ending index within the string end)Validates that the characters at [start, end) within the provided string describe a valid field type descriptor. |
| public static void | |
| public static String | Returns: the class name passed if validthe class name name)Validates the correctness of a binary class name. |
| public static String | Returns: the package name passed if validthe package name name)Validates the correctness of a binary package name. |
| public static void | |
| private static String | Returns: the name passed if validthe name name, boolean true means / is the separator char
(internal form); otherwise . is the separator chartrue means the empty string is a valid nameValidates the correctness of a class or interface name or a package name. |
| public static String | Returns: the class name passed if validthe class name name)Validates the correctness of an internal class name. |
| public static String | Returns: the package name passed if validthe package name name)Validates the correctness of an internal package name. |
| public static String | Returns: the name passed if validthe name of the member name, boolean method)Validates a member name |
| public static String | Returns: the module name passed if validthe module name name)Validates the correctness of a module name. |
| CD_module_info | back to summary |
|---|---|
| public static final ClassDesc CD_module_info | |
| CD_Object_array | back to summary |
|---|---|
| public static ClassDesc CD_Object_array
| |
| EMPTY_CLASSDESC | back to summary |
|---|---|
| public static final ClassDesc[] EMPTY_CLASSDESC | |
| EMPTY_CONSTANTDESC | back to summary |
|---|---|
| public static final ConstantDesc[] EMPTY_CONSTANTDESC an empty constant descriptor | |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| JVM_SIGNATURE_ARRAY | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_ARRAY | |
| JVM_SIGNATURE_BOOLEAN | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_BOOLEAN | |
| JVM_SIGNATURE_BYTE | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_BYTE | |
| JVM_SIGNATURE_CHAR | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_CHAR | |
| JVM_SIGNATURE_CLASS | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_CLASS | |
| JVM_SIGNATURE_DOUBLE | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_DOUBLE | |
| JVM_SIGNATURE_FLOAT | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_FLOAT | |
| JVM_SIGNATURE_INT | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_INT | |
| JVM_SIGNATURE_LONG | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_LONG | |
| JVM_SIGNATURE_SHORT | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_SHORT | |
| JVM_SIGNATURE_VOID | back to summary |
|---|---|
| private static final char JVM_SIGNATURE_VOID | |
| MAX_ARRAY_TYPE_DESC_DIMENSIONS | back to summary |
|---|---|
| public static final int MAX_ARRAY_TYPE_DESC_DIMENSIONS | |
| pointyNames | back to summary |
|---|---|
| private static final Set<String> pointyNames | |
| ConstantUtils | back to summary |
|---|---|
| private ConstantUtils() No instantiation | |
| arrayDepth | back to summary |
|---|---|
| public static int arrayDepth(String descriptorString, int off) Retrieves the array depth on a trusted descriptor. Uses a simple loop with the assumption that most descriptors have 0 or very low array depths. | |
| badMethodDescriptor | back to summary |
|---|---|
| pack-priv static IllegalArgumentException badMethodDescriptor(String descriptor) | |
| binaryNameToDesc | back to summary |
|---|---|
| public static ClassDesc binaryNameToDesc(String binaryName) Creates a ClassDesc from a pre-validated binary name
for a class or interface type. Validated version of
| |
| binaryToInternal | back to summary |
|---|---|
| public static String binaryToInternal(String name) | |
| classDesc | back to summary |
|---|---|
| public static ClassDesc classDesc(Class<?> type) Creates a ClassDesc from a Class object, requires that this class can always be described nominally, i.e. this class is not a hidden class or interface or an array with a hidden component type. | |
| concat | back to summary |
|---|---|
| public static String concat(String prefix, Object value, String suffix) | |
| dropFirstAndLastChar | back to summary |
|---|---|
| public static String dropFirstAndLastChar(String s) | |
| forPrimitiveType | back to summary |
|---|---|
| public static PrimitiveClassDescImpl forPrimitiveType(String descriptor, int offset) | |
| internalNameToDesc | back to summary |
|---|---|
| public static ClassDesc internalNameToDesc(String internalName) Creates a ClassDesc from a pre-validated internal name
for a class or interface type. Validated version of
| |
| internalToBinary | back to summary |
|---|---|
| public static String internalToBinary(String name) | |
| invalidArrayRankMessage | back to summary |
|---|---|
| pack-priv static String invalidArrayRankMessage(int rank) | |
| invalidClassName | back to summary |
|---|---|
| pack-priv static IllegalArgumentException invalidClassName(String className) | |
| maxArrayTypeDescDimensions | back to summary |
|---|---|
| private static IllegalArgumentException maxArrayTypeDescDimensions() | |
| methodTypeDesc | back to summary |
|---|---|
| public static MethodTypeDesc methodTypeDesc(MethodType type) Creates a MethodTypeDesc from a MethodType object, requires that the type can be described nominally, i.e. all of its return type and parameter types can be described nominally. | |
| methodTypeDesc | back to summary |
|---|---|
| public static MethodTypeDesc methodTypeDesc(Class<?> returnType, Class<?>[] parameterTypes) Creates a MethodTypeDesc from return class and parameter class objects, requires that all of them can be described nominally. This version is mainly useful for working with Method objects. | |
| parseReferenceTypeDesc | back to summary |
|---|---|
| public static ClassDesc parseReferenceTypeDesc(String descriptor) Creates a ClassDesc from a descriptor string for a class or interface type or an array type.
| |
| referenceClassDesc | back to summary |
|---|---|
| public static ClassDesc referenceClassDesc(Class<?> type) Creates a ClassDesc from a Class object representing a non-hidden class or interface or an array type with a non-hidden component type. | |
| referenceClassDesc | back to summary |
|---|---|
| public static ClassDesc referenceClassDesc(String descriptor) Creates a ClassDesc from a pre-validated descriptor string for a class or interface type or an array type.
| |
| resolveClassDesc | back to summary |
|---|---|
| pack-priv static ClassDesc resolveClassDesc(String descriptor, int start, int len) | |
| skipOverFieldSignature | back to summary |
|---|---|
| pack-priv static int skipOverFieldSignature(String descriptor, int start, int end) Validates that the characters at [start, end) within the provided string describe a valid field type descriptor.
| |
| validateArrayRank | back to summary |
|---|---|
| public static void validateArrayRank(int rank) | |
| validateBinaryClassName | back to summary |
|---|---|
| public static String validateBinaryClassName(String name) Validates the correctness of a binary class name.
In particular checks for the presence of invalid characters, empty
name, consecutive, leading, or trailing
| |
| validateBinaryPackageName | back to summary |
|---|---|
| public static String validateBinaryPackageName(String name) Validates the correctness of a binary package name.
In particular checks for the presence of invalid characters, consecutive,
leading, or trailing
| |
| validateClassOrInterface | back to summary |
|---|---|
| public static void validateClassOrInterface(ClassDesc classDesc) | |
| validateClassOrPackageName | back to summary |
|---|---|
| private static String validateClassOrPackageName(String name, boolean slashSeparator, boolean allowEmpty) Validates the correctness of a class or interface name or a package name. In particular checks for the presence of invalid characters, consecutive, leading, or trailing separator char, for both non-internal and internal forms, and the empty string for class or interface names.
| |
| validateInternalClassName | back to summary |
|---|---|
| public static String validateInternalClassName(String name) Validates the correctness of an internal class name.
In particular checks for the presence of invalid characters, empty
name, consecutive, leading, or trailing
| |
| validateInternalPackageName | back to summary |
|---|---|
| public static String validateInternalPackageName(String name) Validates the correctness of an internal package name.
In particular checks for the presence of invalid characters, consecutive,
leading, or trailing
| |
| validateMemberName | back to summary |
|---|---|
| public static String validateMemberName(String name, boolean method) Validates a member name
| |
| validateModuleName | back to summary |
|---|---|
| public static String validateModuleName(String name) Validates the correctness of a module name. In particular checks for the presence of invalid characters in the name. Empty module name is allowed. 4.2.3 Module and Package Names
| |