Module de.carne.mcd.jvmdecoder
Enum ReferenceKind
- java.lang.Object
-
- java.lang.Enum<ReferenceKind>
-
- de.carne.mcd.jvmdecoder.classfile.constant.ReferenceKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ReferenceKind>
public enum ReferenceKind extends java.lang.Enum<ReferenceKind>
Reference types as used by MethodHandleConstant.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REF_getFieldgetField = 1REF_getStaticgetStatic = 2REF_invokeInterfaceinvokeInterface = 9REF_invokeSpecialinvokeSpecial = 7REF_invokeStaticinvokeStatic = 6REF_invokeVirtualinvokeVirtual = 5REF_newInvokeSpecialnewInvokeSpecial = 8REF_putFieldputField = 3REF_putStaticputStatic = 4
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringsymbol()Gets the symbol of this reference kind instance.static ReferenceKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ReferenceKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REF_getField
public static final ReferenceKind REF_getField
getField = 1
-
REF_getStatic
public static final ReferenceKind REF_getStatic
getStatic = 2
-
REF_putField
public static final ReferenceKind REF_putField
putField = 3
-
REF_putStatic
public static final ReferenceKind REF_putStatic
putStatic = 4
-
REF_invokeVirtual
public static final ReferenceKind REF_invokeVirtual
invokeVirtual = 5
-
REF_invokeStatic
public static final ReferenceKind REF_invokeStatic
invokeStatic = 6
-
REF_invokeSpecial
public static final ReferenceKind REF_invokeSpecial
invokeSpecial = 7
-
REF_newInvokeSpecial
public static final ReferenceKind REF_newInvokeSpecial
newInvokeSpecial = 8
-
REF_invokeInterface
public static final ReferenceKind REF_invokeInterface
invokeInterface = 9
-
-
Method Detail
-
values
public static ReferenceKind[] 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 (ReferenceKind c : ReferenceKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferenceKind 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
-
symbol
public java.lang.String symbol()
Gets the symbol of this reference kind instance.- Returns:
- the symbol of this reference kind instance.
-
-