Package jadx.plugins.input.java.data
Enum ConstantType
- java.lang.Object
-
- java.lang.Enum<ConstantType>
-
- jadx.plugins.input.java.data.ConstantType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConstantType>
public enum ConstantType extends java.lang.Enum<ConstantType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSDOUBLEDYNAMICFIELD_REFFLOATINTEGERINTERFACE_METHOD_REFINVOKE_DYNAMICLONGMETHOD_HANDLEMETHOD_REFMETHOD_TYPEMODULENAME_AND_TYPEPACKAGESTRINGUTF8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataSize()bytegetTag()static ConstantTypegetTypeByTag(int tag)static ConstantTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstantType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UTF8
public static final ConstantType UTF8
-
INTEGER
public static final ConstantType INTEGER
-
FLOAT
public static final ConstantType FLOAT
-
LONG
public static final ConstantType LONG
-
DOUBLE
public static final ConstantType DOUBLE
-
CLASS
public static final ConstantType CLASS
-
STRING
public static final ConstantType STRING
-
FIELD_REF
public static final ConstantType FIELD_REF
-
METHOD_REF
public static final ConstantType METHOD_REF
-
INTERFACE_METHOD_REF
public static final ConstantType INTERFACE_METHOD_REF
-
NAME_AND_TYPE
public static final ConstantType NAME_AND_TYPE
-
METHOD_HANDLE
public static final ConstantType METHOD_HANDLE
-
METHOD_TYPE
public static final ConstantType METHOD_TYPE
-
DYNAMIC
public static final ConstantType DYNAMIC
-
INVOKE_DYNAMIC
public static final ConstantType INVOKE_DYNAMIC
-
MODULE
public static final ConstantType MODULE
-
PACKAGE
public static final ConstantType PACKAGE
-
-
Method Detail
-
values
public static ConstantType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConstantType c : ConstantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstantType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTypeByTag
public static ConstantType getTypeByTag(int tag)
-
getTag
public byte getTag()
-
getDataSize
public int getDataSize()
-
-