public class ClassUtil
extends java.lang.Object
Clazz
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalClassName(java.lang.String externalClassName)
Converts an external class name into a canonical class name.
|
static void |
checkMagicNumber(int magicNumber)
Checks whether the given class magic number is correct.
|
static void |
checkVersionNumbers(int internalClassVersion)
Checks whether the given class version number is supported.
|
static int |
externalArrayTypeDimensionCount(java.lang.String externalType)
Returns the number of dimensions of the given external type.
|
static java.lang.String |
externalBaseType(java.lang.String externalArrayType)
Returns the external base type of an external array type, dropping any array brackets.
|
static java.lang.String |
externalClassAccessFlags(int accessFlags)
Converts internal class access flags into an external access description.
|
static java.lang.String |
externalClassAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal class access flags into an external access description.
|
static java.lang.String |
externalClassForNameType(java.lang.String internalType)
Converts an internal type into an external type, as expected by Class.forName.
|
static java.lang.String |
externalClassName(java.lang.String internalClassName)
Converts an internal class name into an external class name.
|
static java.lang.String |
externalClassVersion(int internalClassVersion)
Returns the minor part of the given class version number.
|
static java.lang.String |
externalExportsAccessFlags(int accessFlags)
Converts internal module exports access flags into an external access description.
|
static java.lang.String |
externalExportsAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal module exports access flags into an external access description.
|
static java.lang.String |
externalFieldAccessFlags(int accessFlags)
Converts internal field access flags into an external access description.
|
static java.lang.String |
externalFieldAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal field access flags into an external access description.
|
static java.lang.String |
externalFullClassDescription(int accessFlags,
java.lang.String internalClassName)
Converts an internal class description into an external class description.
|
static java.lang.String |
externalFullFieldDescription(int accessFlags,
java.lang.String fieldName,
java.lang.String internalFieldDescriptor)
Converts an internal field description into an external full field description.
|
static java.lang.String |
externalFullMethodDescription(java.lang.String internalClassName,
int accessFlags,
java.lang.String internalMethodName,
java.lang.String internalMethodDescriptor)
Converts an internal method description into an external full method description.
|
static java.lang.String |
externalMethodAccessFlags(int accessFlags)
Converts internal method access flags into an external access description.
|
static java.lang.String |
externalMethodAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal method access flags into an external access description.
|
static java.lang.String |
externalMethodArguments(java.lang.String internalMethodDescriptor)
Converts an internal method descriptor into an external method argument description.
|
static java.lang.String |
externalMethodName(java.lang.String externalMethodNameAndArguments)
Returns the name part of the given external method name and arguments.
|
static java.lang.String |
externalMethodReturnType(java.lang.String internalMethodDescriptor)
Converts an internal method descriptor into an external method return type.
|
static java.lang.String |
externalModuleAccessFlags(int accessFlags)
Converts internal module access flags into an external access description.
|
static java.lang.String |
externalModuleAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal module access flags into an external access description.
|
static java.lang.String |
externalOpensAccessFlags(int accessFlags)
Converts internal module opens access flags into an external access description.
|
static java.lang.String |
externalOpensAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal module opens access flags into an external access description.
|
static java.lang.String |
externalPackageName(java.lang.String externalClassName)
Returns the external package name of the given external class name.
|
static java.lang.String |
externalPackagePrefix(java.lang.String externalClassName)
Returns the external package prefix of the given external class name.
|
static java.lang.String |
externalParameterAccessFlags(int accessFlags)
Converts internal method parameter access flags into an external access description.
|
static java.lang.String |
externalParameterAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal method parameter access flags into an external access description.
|
static java.lang.String |
externalRequiresAccessFlags(int accessFlags)
Converts internal module requires access flags into an external access description.
|
static java.lang.String |
externalRequiresAccessFlags(int accessFlags,
java.lang.String prefix)
Converts internal module requires access flags into an external access description.
|
static java.lang.String |
externalShortClassName(java.lang.String externalClassName)
Returns the external short class name of an external class name, dropping the package
specification.
|
static java.lang.String |
externalType(java.lang.String internalType)
Converts an internal type into an external type.
|
static int |
internalArrayTypeDimensionCount(java.lang.String internalType)
Returns the number of dimensions of the given internal type.
|
static java.lang.String |
internalArrayTypeFromClassName(java.lang.String internalClassName,
int dimensionCount)
Returns the internal array type of a given class name with a given number of dimensions.
|
static java.lang.String |
internalArrayTypeFromType(java.lang.String internalType,
int dimensionDelta)
Returns the internal array type of a given type, with a given number of additional dimensions.
|
static java.lang.String |
internalClassName(java.lang.String externalClassName)
Converts an external class name into an internal class name.
|
static java.lang.String |
internalClassNameFromClassSignature(java.lang.String classSignature)
Returns the internal class name for a given Class Signature.
|
static java.lang.String |
internalClassNameFromClassType(java.lang.String internalClassType)
Returns the internal class name of a given internal class type (including an array type).
|
static java.lang.String |
internalClassNameFromType(java.lang.String internalClassType)
Returns the internal class name of any given internal descriptor type, disregarding array
prefixes.
|
static java.lang.String |
internalClassTypeFromType(java.lang.String internalType)
Returns the internal class type (class name or array type) of a given internal type (including
an array type).
|
static int |
internalClassVersion(int majorVersion,
int minorVersion)
Returns the combined class version number.
|
static int |
internalClassVersion(java.lang.String externalClassVersion)
Returns the internal class version number.
|
static int |
internalMajorClassVersion(int internalClassVersion)
Returns the major part of the given class version number.
|
static java.lang.String |
internalMethodDescriptor(java.lang.String externalReturnType,
java.util.List<java.lang.String> externalArguments)
Converts the given external method return type and List of arguments to an internal method
descriptor.
|
static java.lang.String |
internalMethodDescriptor(java.lang.String externalReturnType,
java.lang.String externalMethodNameAndArguments)
Converts the given external method return type and name and arguments to an internal method
descriptor.
|
static java.lang.String |
internalMethodDescriptorFromInternalTypes(java.lang.String internalReturnType,
java.util.List<java.lang.String> internalArguments)
Converts the given internal method return type and List of arguments to an internal method
descriptor.
|
static int |
internalMethodParameterCount(java.lang.String internalMethodDescriptor)
Returns the number of parameters of the given internal method descriptor.
|
static int |
internalMethodParameterCount(java.lang.String internalMethodDescriptor,
boolean isStatic)
Returns the number of parameters of the given internal method descriptor.
|
static int |
internalMethodParameterCount(java.lang.String internalMethodDescriptor,
int accessFlags)
Returns the number of parameters of the given internal method descriptor.
|
static int |
internalMethodParameterNumber(java.lang.String internalMethodDescriptor,
boolean isStatic,
int variableIndex)
Returns the parameter number in the given internal method descriptor, corresponding to the
given variable index.
|
static int |
internalMethodParameterNumber(java.lang.String internalMethodDescriptor,
int accessFlags,
int variableIndex)
Returns the parameter number in the given internal method descriptor, corresponding to the
given variable index.
|
static int |
internalMethodParameterSize(java.lang.String internalMethodDescriptor)
Returns the size taken up on the stack by the parameters of the given internal method
descriptor.
|
static int |
internalMethodParameterSize(java.lang.String internalMethodDescriptor,
boolean isStatic)
Returns the size taken up on the stack by the parameters of the given internal method
descriptor.
|
static int |
internalMethodParameterSize(java.lang.String internalMethodDescriptor,
int accessFlags)
Returns the size taken up on the stack by the parameters of the given internal method
descriptor.
|
static java.lang.String |
internalMethodParameterType(java.lang.String internalMethodDescriptor,
int parameterIndex)
Returns the internal type of the parameter in the given method descriptor, at the given index.
|
static java.lang.String |
internalMethodReturnType(java.lang.String internalMethodDescriptor)
Returns the internal type of the given internal method descriptor.
|
static int |
internalMethodVariableIndex(java.lang.String internalMethodDescriptor,
boolean isStatic,
int parameterNumber)
Returns the parameter index in the given internal method descriptor, corresponding to the given
variable number.
|
static int |
internalMethodVariableIndex(java.lang.String internalMethodDescriptor,
int accessFlags,
int parameterNumber)
Returns the variable index corresponding to the given parameter number in the given internal
method descriptor.
|
static int |
internalMinorClassVersion(int internalClassVersion)
Returns the internal class version number.
|
static java.lang.String |
internalNumericClassNameFromPrimitiveType(char internalPrimitiveType)
Returns the internal numeric (or void or array) class name corresponding to the given internal
primitive type.
|
static java.lang.String |
internalPackageName(java.lang.String internalClassName)
Returns the internal package name of the given internal class name.
|
static java.lang.String |
internalPackagePrefix(java.lang.String internalClassName)
Returns the internal package prefix of the given internal class name.
|
static char |
internalPrimitiveTypeFromNumericClassName(java.lang.String internalPrimitiveClassName)
Returns the internal numeric (or void or array) class name corresponding to the given internal
primitive type.
|
static char |
internalPrimitiveTypeFromPrimitiveBoxingType(java.lang.String type)
Returns the primitive type corresponding to the given internal primitive boxing type.
|
static java.lang.String |
internalShortClassName(java.lang.String internalClassName)
Returns the internal short class name of an internal class name, dropping the package
specification.
|
static java.lang.String |
internalSimpleClassName(java.lang.String internalClassName)
Returns the simple name of an internal class name, dropping the package specification and any
outer class part.
|
static java.lang.String |
internalType(java.lang.String externalType)
Converts an external type into an internal type.
|
static java.lang.String |
internalTypeFromArrayType(java.lang.String internalArrayType)
Returns the internal element type of a given internal array type.
|
static java.lang.String |
internalTypeFromClassName(java.lang.String internalClassName)
Returns the internal type of a given class name.
|
static java.lang.String |
internalTypeFromClassType(java.lang.String internalType)
Returns the internal type of a given class type (class name or array type).
|
static int |
internalTypeSize(java.lang.String internalType)
Returns the size taken up on the stack by the given internal type.
|
static boolean |
isExtendable(Clazz clazz)
Returns `true` if a
Clazz is null or if it does not represent a final class. |
static boolean |
isExternalMethodNameAndArguments(java.lang.String externalMemberNameAndArguments)
Returns whether the given member String represents an external method name with arguments.
|
static boolean |
isInitializer(java.lang.String internalMethodName)
Returns whether the given method name refers to a class initializer or an instance initializer.
|
static boolean |
isInternalArrayInterfaceName(java.lang.String internalClassName)
Returns whether the given internal class name is one of the interfaces that is implemented by
all array types.
|
static boolean |
isInternalArrayType(java.lang.String internalType)
Returns whether the given internal type is an array type.
|
static boolean |
isInternalCategory2Type(java.lang.String internalType)
Returns whether the given internal type is a primitive Category 2 type.
|
static boolean |
isInternalClassType(java.lang.String internalType)
Returns whether the given internal type is a plain class type (including an array type of a
plain class type).
|
static boolean |
isInternalMethodDescriptor(java.lang.String internalDescriptor)
Returns whether the given internal descriptor String represents a method descriptor.
|
static boolean |
isInternalPrimitiveBoxingType(java.lang.String internalType)
Returns whether the given class is a class boxing a primitive type (not void).
|
static boolean |
isInternalPrimitiveType(char internalType)
Returns whether the given internal type is a plain primitive type (not void).
|
static boolean |
isInternalPrimitiveType(java.lang.String internalType)
Returns whether the given internal type is a plain primitive type (not void).
|
static boolean |
isInternalPrimitiveTypeOrString(java.lang.String internalType)
Returns whether the given internal type is a plain primitive type (not void) or a
java/lang/String.
|
static boolean |
isInternalType(java.lang.String type)
Returns whether the given type is an internal type, i.e.
|
static java.lang.String |
removeGenericTypes(java.lang.String descriptor)
Remove any generic type parameters from the given descriptor.
|
public static void checkMagicNumber(int magicNumber) throws java.lang.UnsupportedOperationException
magicNumber
- the magic number.java.lang.UnsupportedOperationException
- when the magic number is incorrect.public static int internalClassVersion(int majorVersion, int minorVersion)
majorVersion
- the major part of the class version number.minorVersion
- the minor part of the class version number.public static int internalMajorClassVersion(int internalClassVersion)
internalClassVersion
- the combined class version number.public static int internalMinorClassVersion(int internalClassVersion)
internalClassVersion
- the external class version number.public static int internalClassVersion(java.lang.String externalClassVersion)
externalClassVersion
- the external class version number.public static java.lang.String externalClassVersion(int internalClassVersion)
internalClassVersion
- the combined class version number.public static void checkVersionNumbers(int internalClassVersion) throws java.lang.UnsupportedOperationException
internalClassVersion
- the combined class version number.java.lang.UnsupportedOperationException
- when the version is not supported.public static java.lang.String internalClassName(java.lang.String externalClassName)
externalClassName
- the external class name, e.g. "java.lang.Object
"java/lang/Object
".public static java.lang.String canonicalClassName(java.lang.String externalClassName)
externalClassName
- the external class name e.g. com.example.Enclosing$Inner
com.example.Enclosing.Inner
public static java.lang.String externalFullClassDescription(int accessFlags, java.lang.String internalClassName)
accessFlags
- the access flags of the class.internalClassName
- the internal class name, e.g. "java/lang/Object
".public java.lang.Object
".public static java.lang.String externalClassName(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
".java.lang.Object
".public static java.lang.String externalBaseType(java.lang.String externalArrayType)
externalArrayType
- the external array type, e.g. "java.lang.Object[][]
"java.lang.Object
".public static java.lang.String externalShortClassName(java.lang.String externalClassName)
externalClassName
- the external class name, e.g. "java.lang.Object
"Object
".public static java.lang.String internalShortClassName(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
"Object
".public static boolean isInternalArrayType(java.lang.String internalType)
internalType
- the internal type, e.g. "[[Ljava/lang/Object;
".true
if the given type is an array type, false
otherwise.public static int internalArrayTypeDimensionCount(java.lang.String internalType)
internalType
- the internal type, e.g. "[[Ljava/lang/Object;
".public static boolean isInternalArrayInterfaceName(java.lang.String internalClassName)
java/lang/Object
", "
java/lang/Cloneable
", and "java/io/Serializable
"internalClassName
- the internal class name, e.g. "java/lang/Object
".true
if the given type is an array interface name, false
otherwise.public static boolean isInternalPrimitiveType(char internalType)
internalType
- the internal type, e.g. "I
".true
if the given type is a class type, false
otherwise.public static boolean isInternalPrimitiveType(java.lang.String internalType)
internalType
- the internal type, e.g. "I
".true
if the given type is an internal primitive type, false
otherwise.public static boolean isInternalPrimitiveBoxingType(java.lang.String internalType)
internalType
- the internal type, e.g. "Ljava/lang/Integer;
".true
if the given type is a boxing internal type of a class boxing a
primitive, false
otherwise.public static char internalPrimitiveTypeFromPrimitiveBoxingType(java.lang.String type)
type
- an internal primitive boxing type, e.g. "Ljava/lang/Integer;
".I
".public static boolean isInternalPrimitiveTypeOrString(java.lang.String internalType)
internalType
- the internal type, e.g. "I
".true
if the given type is a class type, false
otherwise.public static boolean isInternalCategory2Type(java.lang.String internalType)
internalType
- the internal type, e.g. "L
".true
if the given type is a Category 2 type, false
otherwise.public static boolean isInternalClassType(java.lang.String internalType)
internalType
- the internal type, e.g. "Ljava/lang/Object;
".true
if the given type is a class type, false
otherwise.public static boolean isInternalType(java.lang.String type)
- an internal array type; - an internal primitive type; - an internal class type.
type
- the type, e.g. "Ljava/lang/String;
", "I
"true
if the given type is a class type, false
otherwise.public static java.lang.String internalTypeFromClassName(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
".Ljava/lang/Object;
".public static java.lang.String internalArrayTypeFromClassName(java.lang.String internalClassName, int dimensionCount)
internalClassName
- the internal class name, e.g. "java/lang/Object
".dimensionCount
- the number of array dimensions.Ljava/lang/Object;
".public static java.lang.String internalArrayTypeFromType(java.lang.String internalType, int dimensionDelta)
internalType
- the internal class name, e.g. "[Ljava/lang/Object;
".dimensionDelta
- the number of additional array dimensions, e.g. 1.[[Ljava/lang/Object;
".public static java.lang.String internalTypeFromArrayType(java.lang.String internalArrayType)
internalArrayType
- the internal array type, e.g. "[[Ljava/lang/Object;
" or "
[I
".Ljava/lang/Object;
" or "
I
".public static java.lang.String internalClassTypeFromType(java.lang.String internalType)
internalType
- the internal class type, e.g. "[I
", "[Ljava/lang/Object;
", or "Ljava/lang/Object;
".[I
", "[Ljava/lang/Object;
", or
"java/lang/Object
".public static java.lang.String internalTypeFromClassType(java.lang.String internalType)
internalType
- the internal class type, e.g. "[I
", "[Ljava/lang/Object;
", or "java/lang/Object
".[I
", "[Ljava/lang/Object;
", or
"Ljava/lang/Object;
".public static java.lang.String internalClassNameFromClassType(java.lang.String internalClassType)
internalClassNameFromClassSignature(String)
instead, as
this method will not handle generic type parameters and the '.' as inner class separator.internalClassType
- the internal class type, e.g. "[Ljava/lang/Object;
", "
Ljava/lang/Object;
", or "java/lang/Object
".java/lang/Object
".public static java.lang.String internalClassNameFromClassSignature(java.lang.String classSignature)
classSignature
- the class signature, e.g. "Lsome/package/Klass< T;>.Inner
"some/package/Klass$Inner
".public static java.lang.String removeGenericTypes(java.lang.String descriptor)
public static java.lang.String internalClassNameFromType(java.lang.String internalClassType)
internalClassType
- the internal class type, e.g. "Ljava/lang/Object;
" or "
[[I
".java/lang/Object
" or null
.public static java.lang.String internalNumericClassNameFromPrimitiveType(char internalPrimitiveType)
internalPrimitiveType
- the internal class type, e.g. "I
" or "V
".java/lang/Integer
" or java/lang/Void
.public static char internalPrimitiveTypeFromNumericClassName(java.lang.String internalPrimitiveClassName)
internalPrimitiveClassName
- the internal class name, e.g. "java/lang/Integer
" or java/lang/Void
.I
" or "V
".public static java.lang.String internalSimpleClassName(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
"Object
".public static boolean isInitializer(java.lang.String internalMethodName)
internalMethodName
- the internal method name, e.g. "<clinit>
".true
.public static java.lang.String internalMethodReturnType(java.lang.String internalMethodDescriptor)
internalMethodDescriptor
- the internal method descriptor, e.g. "(II)Z
".Z
".public static int internalMethodParameterCount(java.lang.String internalMethodDescriptor)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".public static int internalMethodParameterCount(java.lang.String internalMethodDescriptor, int accessFlags)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".accessFlags
- the access flags of the method, e.g. 0.public static int internalMethodParameterCount(java.lang.String internalMethodDescriptor, boolean isStatic)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".isStatic
- specifies whether the method is static, e.g. false.public static int internalMethodParameterSize(java.lang.String internalMethodDescriptor)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".public static int internalMethodParameterSize(java.lang.String internalMethodDescriptor, int accessFlags)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".accessFlags
- the access flags of the method, e.g. 0.public static int internalMethodParameterSize(java.lang.String internalMethodDescriptor, boolean isStatic)
internalMethodDescriptor
- the internal method descriptor, e.g. "(ID)Z
".isStatic
- specifies whether the method is static, e.g. false.public static int internalMethodParameterNumber(java.lang.String internalMethodDescriptor, int accessFlags, int variableIndex)
internalMethodDescriptor
- the internal method descriptor, e.g. "(IDI)Z
".accessFlags
- the access flags of the method, e.g. 0.variableIndex
- the variable index of the parameter, e.g. 4.public static int internalMethodParameterNumber(java.lang.String internalMethodDescriptor, boolean isStatic, int variableIndex)
internalMethodDescriptor
- the internal method descriptor, e.g. "(IDI)Z
".isStatic
- specifies whether the method is static, e.g. false.variableIndex
- the variable index of the parameter, e.g. 4.public static int internalMethodVariableIndex(java.lang.String internalMethodDescriptor, int accessFlags, int parameterNumber)
internalMethodDescriptor
- the internal method descriptor, e.g. "(IDI)Z
".accessFlags
- the access flags of the method, e.g. 0.parameterNumber
- the parameter number, e.g. 3.public static int internalMethodVariableIndex(java.lang.String internalMethodDescriptor, boolean isStatic, int parameterNumber)
internalMethodDescriptor
- the internal method descriptor, e.g. "(IDI)Z
".isStatic
- specifies whether the method is static, e.g. false.parameterNumber
- the parameter number, e.g. 3.public static java.lang.String internalMethodParameterType(java.lang.String internalMethodDescriptor, int parameterIndex)
internalMethodDescriptor
- the internal method descriptor e.g. "(IDI)Z
".parameterIndex
- the parameter index, e.g. 1.D
".public static int internalTypeSize(java.lang.String internalType)
internalType
- the internal type, e.g. "I
".public static java.lang.String internalType(java.lang.String externalType)
externalType
- the external type, e.g. "java.lang.Object[][]
" or "int[]
".[[Ljava/lang/Object;
" or "[I
".public static int externalArrayTypeDimensionCount(java.lang.String externalType)
externalType
- the external type, e.g. "[[Ljava/lang/Object;
".public static java.lang.String externalType(java.lang.String internalType)
internalType
- the internal type, e.g. "Ljava/lang/Object;
" or "
[[Ljava/lang/Object;
" or "[I
".java.lang.Object
" or "java.lang.Object[][]
" or "int[]
".java.lang.IllegalArgumentException
- if the type is invalid.public static java.lang.String externalClassForNameType(java.lang.String internalType)
internalType
- the internal type, e.g. "Ljava/lang/Object;
" or "
[[Ljava/lang/Object;
" or "[I
".java.lang.Object
" or "[[Ljava.lang.Object;
" or "[I
".public static boolean isInternalMethodDescriptor(java.lang.String internalDescriptor)
internalDescriptor
- the internal descriptor String, e.g. "(II)Z
".true
if the given String is a method descriptor, false
otherwise.public static boolean isExternalMethodNameAndArguments(java.lang.String externalMemberNameAndArguments)
externalMemberNameAndArguments
- the external member String, e.g. "myField
"
or e.g. "myMethod(int,int)
".true
if the given String refers to a method, false
otherwise.public static java.lang.String externalMethodName(java.lang.String externalMethodNameAndArguments)
externalMethodNameAndArguments
- the external method name and arguments, e.g. "
myMethod(int,int)
".myMethod
".public static java.lang.String internalMethodDescriptor(java.lang.String externalReturnType, java.lang.String externalMethodNameAndArguments)
externalReturnType
- the external method return type, e.g. "boolean
".externalMethodNameAndArguments
- the external method name and arguments, e.g. "
myMethod(int,int)
".(II)Z
".public static java.lang.String internalMethodDescriptor(java.lang.String externalReturnType, java.util.List<java.lang.String> externalArguments)
externalReturnType
- the external method return type, e.g. "boolean
".externalArguments
- the external method arguments, e.g. { "int", "int" }
.(II)Z
".public static java.lang.String internalMethodDescriptorFromInternalTypes(java.lang.String internalReturnType, java.util.List<java.lang.String> internalArguments)
internalReturnType
- the external method return type, e.g. "Z
".internalArguments
- the external method arguments, e.g. { "I", "I" }
.(II)Z
".public static java.lang.String externalFullFieldDescription(int accessFlags, java.lang.String fieldName, java.lang.String internalFieldDescriptor)
accessFlags
- the access flags of the field.fieldName
- the field name, e.g. "myField
".internalFieldDescriptor
- the internal field descriptor, e.g. "Z
".public boolean myField
".public static java.lang.String externalFullMethodDescription(java.lang.String internalClassName, int accessFlags, java.lang.String internalMethodName, java.lang.String internalMethodDescriptor)
internalClassName
- the internal name of the class of the method, e.g. "
mypackage/MyClass
".accessFlags
- the access flags of the method.internalMethodName
- the internal method name, e.g. "myMethod
" or "
<init>
".internalMethodDescriptor
- the internal method descriptor, e.g. "(II)Z
".public boolean myMethod(int,int)
" or "public MyClass(int,int)
".public static java.lang.String externalClassAccessFlags(int accessFlags)
accessFlags
- the class access flags.public final
".public static java.lang.String externalClassAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the class access flags.prefix
- a prefix that is added to each access modifier.public final
".public static java.lang.String externalFieldAccessFlags(int accessFlags)
accessFlags
- the field access flags.public volatile
".public static java.lang.String externalFieldAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the field access flags.prefix
- a prefix that is added to each access modifier.public volatile
".public static java.lang.String externalMethodAccessFlags(int accessFlags)
accessFlags
- the method access flags.public synchronized
".public static java.lang.String externalMethodAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the method access flags.prefix
- a prefix that is added to each access modifier.public static java.lang.String externalParameterAccessFlags(int accessFlags)
accessFlags
- the method parameter access flags.final mandated
".public static java.lang.String externalParameterAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the method parameter access flags.prefix
- a prefix that is added to each access modifier.public static java.lang.String externalMethodReturnType(java.lang.String internalMethodDescriptor)
internalMethodDescriptor
- the internal method descriptor, e.g. "(II)Z
".boolean
".public static java.lang.String externalModuleAccessFlags(int accessFlags)
accessFlags
- the module access flags.open mandated
".public static java.lang.String externalModuleAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the module access flags.prefix
- a prefix that is added to each access modifier.final mandated
".public static java.lang.String externalRequiresAccessFlags(int accessFlags)
accessFlags
- the module requires access flags.static mandated
".public static java.lang.String externalRequiresAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the module requires access flags.prefix
- a prefix that is added to each access modifier.static mandated
".public static java.lang.String externalExportsAccessFlags(int accessFlags)
accessFlags
- the module exports access flags.synthetic mandated
".public static java.lang.String externalExportsAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the module exports access flags.prefix
- a prefix that is added to each access modifier.static mandated
".public static java.lang.String externalOpensAccessFlags(int accessFlags)
accessFlags
- the module opens access flags.synthetic mandated
".public static java.lang.String externalOpensAccessFlags(int accessFlags, java.lang.String prefix)
accessFlags
- the module opens access flags.prefix
- a prefix that is added to each access modifier.static mandated
".public static java.lang.String externalMethodArguments(java.lang.String internalMethodDescriptor)
internalMethodDescriptor
- the internal method descriptor, e.g. "(II)Z
".int,int
".public static java.lang.String internalPackageName(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
".java/lang
".public static java.lang.String internalPackagePrefix(java.lang.String internalClassName)
internalClassName
- the internal class name, e.g. "java/lang/Object
".java/lang/
".public static java.lang.String externalPackageName(java.lang.String externalClassName)
externalClassName
- the external class name, e.g. "java.lang.Object
".java.lang
".public static java.lang.String externalPackagePrefix(java.lang.String externalClassName)
externalClassName
- the external class name, e.g. "java.lang.Object
".java.lang.
".