Package org.apache.bcel
Class Const
java.lang.Object
org.apache.bcel.Const
Constants for the project, mostly defined in the JVM specification.
- Since:
- 6.0 (intended to replace the Constants interface)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortJava VM opcode 50.static final shortJava VM opcode 83.static final shortOne of the access flags for methods or classes: 1024.static final shortOne of the access flags for classes: 8192.static final shortOne of the access flags for methods: 64.static final shortOne of the access flags for fields or classes: 16384.static final shortOne of the access flags for fields, methods, or classes: 16.static final shortOne of the access flags for classes: 512.static final shortOne of the access flags for MethodParameter or Module attributes: -32768.static final shortOne of the access flags for classes: -32768.static final shortOne of the access flags for methods: 256.static final shortOne of the access flags for the Module attribute: 32.static final shortOne of the access flags for fields, methods, or classes: 2.static final shortOne of the access flags for fields, methods, or classes: 4.static final shortOne of the access flags for fields, methods, or classes: 1.static final shortOne of the access flags for fields, methods, or classes: 8.static final shortOne of the access flags for the Module attribute: 64.static final shortOne of the access flags for methods: 2048.static final shortOne of the access flags for classes: 32.static final shortOne of the access flags for methods: 32.static final shortOne of the access flags for fields, methods, classes, MethodParameter attribute, or Module attribute: 4096.static final shortOne of the access flags for fields: 128.static final shortOne of the access flags for the Module attribute: 32.static final shortOne of the access flags for methods: 128.static final shortOne of the access flags for fields: 64.static final intstatic final shortJava VM opcode 1.static final shortJava VM opcode 25.static final shortJava VM opcode 42.static final shortJava VM opcode 43.static final shortJava VM opcode 44.static final shortJava VM opcode 45.static final shortJava VM opcode 189.static final shortJVM internal opcode 222.static final intstatic final intstatic final shortJava VM opcode 176.static final shortJava VM opcode 190.static final shortJava VM opcode 58.static final shortJava VM opcode 75.static final shortJava VM opcode 76.static final shortJava VM opcode 77.static final shortJava VM opcode 78.static final shortJava VM opcode 191.static final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byteAttributes and their corresponding names.static final shortJava VM opcode 51.static final shortJava VM opcode 84.static final shortJava VM opcode 16.static final shortJVM internal opcode 202.static final shortJava VM opcode 52.static final shortJava VM opcode 85.static final shortJava VM opcode 192.static final shortJVM internal opcode 224.static final intstatic final intstatic final byteMarks a constant pool entry as a Class: 0x7.static final byteMarks a constant pool entry as type Double: 0x6.static final byteMarks a constant pool entry as dynamically computed: 0x11.static final byteMarks a constant pool entry as a Field Reference: 0x9.static final byteMarks a constant pool entry as type Float: 0x4.static final byteMarks a constant pool entry as type Integer: 0x3.static final byteMarks a constant pool entry as an Interface Method Reference: 0xb.static final byteMarks a constant pool entry as an Invoke Dynamic: 0x12.static final byteMarks a constant pool entry as type Long: 0x5.static final byteMarks a constant pool entry as a Method Handle: 0xf.static final byteMarks a constant pool entry as a Method Reference: 0xa.static final byteMarks a constant pool entry as a Method Type: 0x10.static final byteMarks a constant pool entry as a Module Reference: 0x13.static final byteMarks a constant pool entry as a name and type: 0xc.static final byteMarks a constant pool entry as a Package Reference: 0x14.static final byteMarks a constant pool entry as type String: 0x8.static final byteMarks a constant pool entry as type UTF-8: 0x1.static final StringThe name of every constructor method in a class, also called "instance initialization method".static final shortJava VM opcode 144.static final shortJava VM opcode 142.static final shortJava VM opcode 143.static final shortJava VM opcode 99.static final shortJava VM opcode 49.static final shortJava VM opcode 82.static final shortJava VM opcode 152.static final shortJava VM opcode 151.static final shortJava VM opcode 14.static final shortJava VM opcode 15.static final shortJava VM opcode 111.static final shortJava VM opcode 24.static final shortJava VM opcode 38.static final shortJava VM opcode 39.static final shortJava VM opcode 40.static final shortJava VM opcode 41.static final shortJava VM opcode 107.static final shortJava VM opcode 119.static final shortJava VM opcode 115.static final shortJava VM opcode 175.static final shortJava VM opcode 57.static final shortJava VM opcode 71.static final shortJava VM opcode 72.static final shortJava VM opcode 73.static final shortJava VM opcode 74.static final shortJava VM opcode 103.static final shortJava VM opcode 89.static final shortJava VM opcode 90.static final shortJava VM opcode 91.static final shortJava VM opcode 92.static final shortJava VM opcode 93.static final shortJava VM opcode 94.static final shortJava VM opcode 141.static final shortJava VM opcode 139.static final shortJava VM opcode 140.static final shortJava VM opcode 98.static final shortJava VM opcode 48.static final shortJava VM opcode 81.static final shortJava VM opcode 150.static final shortJava VM opcode 149.static final shortJava VM opcode 11.static final shortJava VM opcode 12.static final shortJava VM opcode 13.static final shortJava VM opcode 110.static final shortJava VM opcode 23.static final shortJava VM opcode 34.static final shortJava VM opcode 35.static final shortJava VM opcode 36.static final shortJava VM opcode 37.static final shortJava VM opcode 106.static final shortJava VM opcode 118.static final shortJava VM opcode 114.static final shortJava VM opcode 174.static final shortJava VM opcode 56.static final shortJava VM opcode 67.static final shortJava VM opcode 68.static final shortJava VM opcode 69.static final shortJava VM opcode 70.static final shortJava VM opcode 102.static final intstatic final shortJava VM opcode 180.static final shortJVM internal opcode 206.static final shortJVM internal opcode 227.static final shortJVM internal opcode 208.static final shortJava VM opcode 178.static final shortJVM internal opcode 210.static final shortJVM internal opcode 212.static final shortJava VM opcode 167.static final shortJava VM opcode 200.static final shortJava VM opcode 145.static final shortJava VM opcode 146.static final shortJava VM opcode 135.static final shortJava VM opcode 134.static final shortJava VM opcode 133.static final shortJava VM opcode 147.static final shortJava VM opcode 96.static final shortJava VM opcode 46.static final shortJava VM opcode 126.static final shortJava VM opcode 79.static final shortJava VM opcode 3.static final shortJava VM opcode 4.static final shortJava VM opcode 5.static final shortJava VM opcode 6.static final shortJava VM opcode 7.static final shortJava VM opcode 8.static final shortJava VM opcode 2.static final shortJava VM opcode 108.static final shortJava VM opcode 165.static final shortJava VM opcode 166.static final shortJava VM opcode 159.static final shortJava VM opcode 162.static final shortJava VM opcode 163.static final shortJava VM opcode 164.static final shortJava VM opcode 161.static final shortJava VM opcode 160.static final shortJava VM opcode 153.static final shortJava VM opcode 156.static final shortJava VM opcode 157.static final shortJava VM opcode 158.static final shortJava VM opcode 155.static final shortJava VM opcode 154.static final shortJava VM opcode 199.static final shortJava VM opcode 198.static final shortJava VM opcode 132.static final StringMnemonic for an illegal opcode: "<illegal opcode>".static final StringMnemonic for an illegal type: "<illegal type>".static final shortJava VM opcode 21.static final shortJava VM opcode 26.static final shortJava VM opcode 27.static final shortJava VM opcode 28.static final shortJava VM opcode 29.static final shortJVM internal opcode 254.static final shortJVM internal opcode 255.static final shortJava VM opcode 104.static final shortJava VM opcode 116.static final shortJava VM opcode 193.static final shortJVM internal opcode 225.static final shortJava VM opcode 145.static final shortJava VM opcode 146.static final shortJava VM opcode 147.static final shortJava VM opcode 186.static final shortJava VM opcode 185.static final shortJVM internal opcode 218.static final shortJava VM opcode 183.static final shortJVM internal opcode 215.static final shortJava VM opcode 183.static final shortJava VM opcode 184.static final shortJVM internal opcode 217.static final shortJVM internal opcode 216.static final shortJava VM opcode 182.static final shortJVM internal opcode 214.static final shortJVM internal opcode 226.static final shortJVM internal opcode 219.static final shortJava VM opcode 128.static final shortJava VM opcode 112.static final shortJava VM opcode 172.static final shortJava VM opcode 120.static final shortJava VM opcode 122.static final shortJava VM opcode 54.static final shortJava VM opcode 59.static final shortJava VM opcode 60.static final shortJava VM opcode 61.static final shortJava VM opcode 62.static final shortJava VM opcode 100.static final byteConstants used in the StackMap attribute.static final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final shortJava VM opcode 124.static final shortJava VM opcode 130.static final shortJava VM opcode 168.static final shortJava VM opcode 201.static final intJava class file format Magic number: -889275714.static final shortstatic final shortJava VM opcode 138.static final shortJava VM opcode 137.static final shortJava VM opcode 136.static final shortJava VM opcode 97.static final shortJava VM opcode 47.static final shortJava VM opcode 127.static final shortJava VM opcode 80.static final shortJava VM opcode 148.static final shortJava VM opcode 9.static final shortJava VM opcode 10.static final shortJava VM opcode 18.static final shortJVM internal opcode 203.static final shortJava VM opcode 19.static final shortJVM internal opcode 204.static final shortJava VM opcode 20.static final shortJVM internal opcode 205.static final shortJava VM opcode 109.static final shortJava VM opcode 22.static final shortJava VM opcode 30.static final shortJava VM opcode 31.static final shortJava VM opcode 32.static final shortJava VM opcode 33.static final shortJava VM opcode 105.static final shortJava VM opcode 117.static final shortJava VM opcode 171.static final shortJava VM opcode 129.static final shortJava VM opcode 113.static final shortJava VM opcode 173.static final shortJava VM opcode 121.static final shortJava VM opcode 123.static final shortJava VM opcode 55.static final shortJava VM opcode 63.static final shortJava VM opcode 64.static final shortJava VM opcode 65.static final shortJava VM opcode 66.static final shortJava VM opcode 101.static final shortJava VM opcode 125.static final shortJava VM opcode 131.static final shortDefault major version number.static final shortMajor version number of class files for Java 1.1: 45.static final shortMajor version number of class files for Java 1.2: 46.static final shortMajor version number of class files for Java 1.2: 47.static final shortMajor version number of class files for Java 1.3: 48.static final shortMajor version number of class files for Java 1.4: 49.static final shortMajor version number of class files for Java 1.6: 50.static final shortMajor version number of class files for Java 1.7: 51.static final shortMajor version number of class files for Java 1.8: 52.static final shortDeprecated.static final shortMajor version number of class files for Java 10: 54.static final shortMajor version number of class files for Java 11: 55.static final shortMajor version number of class files for Java 12: 56.static final shortMajor version number of class files for Java 13: 57.static final shortMajor version number of class files for Java 14: 58.static final shortMajor version number of class files for Java 15: 59.static final shortMajor version number of class files for Java 16: 60.static final shortMajor version number of class files for Java 17: 61.static final shortMajor version number of class files for Java 18: 62.static final shortMajor version number of class files for Java 19: 63.static final shortMajor version number of class files for Java 20: 64.static final shortMajor version number of class files for Java 21: 65.static final shortMajor version number of class files for Java 22: 66.static final shortMajor version number of class files for Java 23: 67.static final shortMajor version number of class files for Java 24: 68.static final shortMajor version number of class files for Java 9: 53.static final shortDeprecated.UseMAX_ACC_FLAG_Istatic final intOne of the access flags for fields, methods, or classes.static final intThe maximum number of dimensions in an array: 255.static final intMaximum value for an unsigned byte: 255.static final intMaximum code size (plus one; the code size must be LESS than this): 65536.static final intMaximum Constant Pool entries: 65535.static final intMaximum value for an unsigned short: 65535.static final shortDefault major version number.static final shortMinor version number of class files for Java 1.1: 3.static final shortMinor version number of class files for Java 1.2: 0.static final shortMinor version number of class files for Java 1.3: 0.static final shortMinor version number of class files for Java 1.4: 0.static final shortMinor version number of class files for Java 1.5: 0.static final shortMinor version number of class files for Java 1.6: 0.static final shortMinor version number of class files for Java 1.7: 0.static final shortMinor version number of class files for Java 1.8: 0.static final shortDeprecated.UseMINOR_9(0) instead.static final shortMinor version number of class files for Java 10: 0.static final shortMinor version number of class files for Java 11: 0.static final shortMinor version number of class files for Java 12: 0.static final shortMinor version number of class files for Java 13: 0.static final shortMinor version number of class files for Java 14: 0.static final shortMinor version number of class files for Java 15: 0.static final shortMinor version number of class files for Java 16: 0.static final shortMinor version number of class files for Java 17: 0.static final shortMinor version number of class files for Java 18: 0.static final shortMinor version number of class files for Java 19: 0.static final shortMinor version number of class files for Java 20: 0.static final shortMinor version number of class files for Java 21: 0.static final shortMinor version number of class files for Java 22: 0.static final shortMinor version number of class files for Java 23: 0.static final shortMinor version number of class files for Java 24: 0.static final shortMinor version number of class files for Java 9: 0.static final shortJava VM opcode 194.static final shortJava VM opcode 195.static final shortJava VM opcode 197.static final shortJVM internal opcode 223.static final shortJava VM opcode 187.static final shortJVM internal opcode 221.static final shortJava VM opcode 188.static final shortJava VM opcode 0.static final intstatic final shortJava VM opcode 87.static final shortJava VM opcode 88.static final shortBCEL virtual instruction for pushing an arbitrary data type onto the stack: 4711.static final shortJava VM opcode 181.static final shortJVM internal opcode 207.static final shortJVM internal opcode 228.static final shortJVM internal opcode 209.static final shortJava VM opcode 179.static final shortJVM internal opcode 211.static final shortJVM internal opcode 213.static final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final shortIllegal opcode: -3.static final shortJava VM opcode 169.static final shortJava VM opcode 177.static final shortJava VM opcode 53.static final intConstants used to identify StackMapEntry types.static final intstatic final intConstants that define the maximum value of those constants which store ranges.static final intstatic final intstatic final intstatic final shortJava VM opcode 86.static final String[]The signature characters corresponding to primitive types, e.g., SHORT_TYPE_NAMES[T_INT] = "I"static final shortJava VM opcode 17.static final StringThe name of the static initializer, also called "class initialization method" or "interface initialization method".static final shortJava VM opcode 95.static final shortBCEL virtual instruction for either LOOKUPSWITCH or TABLESWITCH: 4712.static final byteAddress data type.static final byteArray data type.static final byteBoolean data type: 0x4.static final byteByte data type: 0x8.static final byteChar data type: 0x5.static final byteDouble data type: 0x7.static final byteFloat data type: 0x6.static final byteInt data type: 0xa.static final byteLong data type: 0xb.static final byteObject data type.static final byteReference data type (deprecated).static final byteShort data type: 0x9.static final byteUnknown data type.static final byteVoid data type (non-standard).static final shortJava VM opcode 170.static final shortIllegal opcode: -1.static final shortIllegal opcode: -2.static final shortJava VM opcode 196. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAccessName(int index) static StringgetAttributeName(int index) static StringgetClassTypeName(int index) The primitive class names corresponding to the T_XX constants, e.g., CLASS_TYPE_NAMES[T_INT] = "java.lang.Integer"static StringgetConstantName(int index) static intgetConsumeStack(int index) static StringgetItemName(int index) static StringgetMethodHandleName(int index) static shortgetNoOfOperands(int index) static StringgetOpcodeName(int index) static shortgetOperandType(int opcode, int index) static longgetOperandTypeCount(int opcode) static intgetProduceStack(int index) static StringgetShortTypeName(int index) static StringgetTypeName(int index) The primitive type names corresponding to the T_XX constants, e.g., TYPE_NAMES[T_INT] = "int"
-
Field Details
-
JVM_CLASSFILE_MAGIC
Java class file format Magic number: -889275714. -
MAJOR_1_1
Major version number of class files for Java 1.1: 45.- See Also:
-
MINOR_1_1
Minor version number of class files for Java 1.1: 3.- See Also:
-
MAJOR_1_2
Major version number of class files for Java 1.2: 46.- See Also:
-
MINOR_1_2
Minor version number of class files for Java 1.2: 0.- See Also:
-
MAJOR_1_3
Major version number of class files for Java 1.2: 47.- See Also:
-
MINOR_1_3
Minor version number of class files for Java 1.3: 0.- See Also:
-
MAJOR_1_4
Major version number of class files for Java 1.3: 48.- See Also:
-
MINOR_1_4
Minor version number of class files for Java 1.4: 0.- See Also:
-
MAJOR_1_5
Major version number of class files for Java 1.4: 49.- See Also:
-
MINOR_1_5
Minor version number of class files for Java 1.5: 0.- See Also:
-
MAJOR_1_6
Major version number of class files for Java 1.6: 50.- See Also:
-
MINOR_1_6
Minor version number of class files for Java 1.6: 0.- See Also:
-
MAJOR_1_7
Major version number of class files for Java 1.7: 51.- See Also:
-
MINOR_1_7
Minor version number of class files for Java 1.7: 0.- See Also:
-
MAJOR_1_8
Major version number of class files for Java 1.8: 52.- See Also:
-
MINOR_1_8
Minor version number of class files for Java 1.8: 0.- See Also:
-
MAJOR_9
Major version number of class files for Java 9: 53.- See Also:
-
MINOR_9
Minor version number of class files for Java 9: 0.- See Also:
-
MAJOR_1_9
Deprecated.UseMAJOR_9(53) instead.- See Also:
-
MINOR_1_9
Deprecated.UseMINOR_9(0) instead.- See Also:
-
MAJOR_10
Major version number of class files for Java 10: 54.- See Also:
-
MINOR_10
Minor version number of class files for Java 10: 0.- See Also:
-
MAJOR_11
Major version number of class files for Java 11: 55.- See Also:
-
MINOR_11
Minor version number of class files for Java 11: 0.- See Also:
-
MAJOR_12
Major version number of class files for Java 12: 56.- See Also:
-
MINOR_12
Minor version number of class files for Java 12: 0.- See Also:
-
MAJOR_13
Major version number of class files for Java 13: 57.- See Also:
-
MINOR_13
Minor version number of class files for Java 13: 0.- See Also:
-
MINOR_14
Minor version number of class files for Java 14: 0.- Since:
- 6.4.0
- See Also:
-
MINOR_15
Minor version number of class files for Java 15: 0.- Since:
- 6.6.0
- See Also:
-
MINOR_16
Minor version number of class files for Java 16: 0.- Since:
- 6.6.0
- See Also:
-
MINOR_17
Minor version number of class files for Java 17: 0.- Since:
- 6.6.0
- See Also:
-
MINOR_18
Minor version number of class files for Java 18: 0.- Since:
- 6.6.0
- See Also:
-
MINOR_19
Minor version number of class files for Java 19: 0.- Since:
- 6.6.0
- See Also:
-
MINOR_20
Minor version number of class files for Java 20: 0.- Since:
- 6.8.0
- See Also:
-
MINOR_21
Minor version number of class files for Java 21: 0.- Since:
- 6.8.0
- See Also:
-
MINOR_22
Minor version number of class files for Java 22: 0.- Since:
- 6.10.0
- See Also:
-
MINOR_23
Minor version number of class files for Java 23: 0.- Since:
- 6.10.0
- See Also:
-
MINOR_24
Minor version number of class files for Java 24: 0.- Since:
- 6.10.0
- See Also:
-
MAJOR_14
Major version number of class files for Java 14: 58.- Since:
- 6.4.0
- See Also:
-
MAJOR_15
Major version number of class files for Java 15: 59.- Since:
- 6.6.0
- See Also:
-
MAJOR_16
Major version number of class files for Java 16: 60.- Since:
- 6.6.0
- See Also:
-
MAJOR_17
Major version number of class files for Java 17: 61.- Since:
- 6.6.0
- See Also:
-
MAJOR_18
Major version number of class files for Java 18: 62.- Since:
- 6.6.0
- See Also:
-
MAJOR_19
Major version number of class files for Java 19: 63.- Since:
- 6.6.0
- See Also:
-
MAJOR_20
Major version number of class files for Java 20: 64.- Since:
- 6.8.0
- See Also:
-
MAJOR_21
Major version number of class files for Java 21: 65.- Since:
- 6.8.0
- See Also:
-
MAJOR_22
Major version number of class files for Java 22: 66.- Since:
- 6.10.0
- See Also:
-
MAJOR_23
Major version number of class files for Java 23: 67.- Since:
- 6.10.0
- See Also:
-
MAJOR_24
Major version number of class files for Java 24: 68.- Since:
- 6.10.0
- See Also:
-
MAJOR
Default major version number. Class file is for Java 1.1: 45.- See Also:
-
MINOR
Default major version number. Class file is for Java 1.1: 3.- See Also:
-
MAX_SHORT
Maximum value for an unsigned short: 65535.- See Also:
-
MAX_BYTE
Maximum value for an unsigned byte: 255.- See Also:
-
ACC_PUBLIC
One of the access flags for fields, methods, or classes: 1.- See Also:
-
- Flag definitions for Classes in the Java Virtual Machine Specification (Java SE 9 Edition).
- Flag definitions for Fields in the Java Virtual Machine Specification (Java SE 9 Edition).
- Flag definitions for Methods in the Java Virtual Machine Specification (Java SE 9 Edition).
- Flag definitions for Inner Classes in the Java Virtual Machine Specification (Java SE 9 Edition).
- Constant Field Values
-
ACC_PRIVATE
One of the access flags for fields, methods, or classes: 2.- See Also:
-
ACC_PROTECTED
One of the access flags for fields, methods, or classes: 4.- See Also:
-
ACC_STATIC
One of the access flags for fields, methods, or classes: 8.- See Also:
-
ACC_FINAL
One of the access flags for fields, methods, or classes: 16.- See Also:
-
ACC_OPEN
One of the access flags for the Module attribute: 32.- See Also:
-
ACC_SUPER
One of the access flags for classes: 32.- See Also:
-
ACC_SYNCHRONIZED
One of the access flags for methods: 32.- See Also:
-
ACC_TRANSITIVE
One of the access flags for the Module attribute: 32.- See Also:
-
ACC_BRIDGE
One of the access flags for methods: 64.- See Also:
-
ACC_STATIC_PHASE
One of the access flags for the Module attribute: 64.- See Also:
-
ACC_VOLATILE
One of the access flags for fields: 64.- See Also:
-
ACC_TRANSIENT
One of the access flags for fields: 128.- See Also:
-
ACC_VARARGS
One of the access flags for methods: 128.- See Also:
-
ACC_NATIVE
One of the access flags for methods: 256.- See Also:
-
ACC_INTERFACE
One of the access flags for classes: 512.- See Also:
-
ACC_ABSTRACT
One of the access flags for methods or classes: 1024.- See Also:
-
ACC_STRICT
One of the access flags for methods: 2048.- See Also:
-
ACC_SYNTHETIC
One of the access flags for fields, methods, classes, MethodParameter attribute, or Module attribute: 4096.- See Also:
-
ACC_ANNOTATION
One of the access flags for classes: 8192.- See Also:
-
ACC_ENUM
One of the access flags for fields or classes: 16384.- See Also:
-
ACC_MANDATED
One of the access flags for MethodParameter or Module attributes: -32768.- See Also:
-
ACC_MODULE
One of the access flags for classes: -32768.- See Also:
-
MAX_ACC_FLAG
Deprecated.UseMAX_ACC_FLAG_IOne of the access flags for fields, methods, or classes: 16384.- See Also:
-
MAX_ACC_FLAG_I
One of the access flags for fields, methods, or classes. ACC_MODULE is negative as a short: 32768.- Since:
- 6.4.0
- See Also:
-
ACCESS_NAMES_LENGTH
- Since:
- 6.0
-
CONSTANT_Utf8
Marks a constant pool entry as type UTF-8: 0x1. -
CONSTANT_Integer
Marks a constant pool entry as type Integer: 0x3. -
CONSTANT_Float
Marks a constant pool entry as type Float: 0x4. -
CONSTANT_Long
Marks a constant pool entry as type Long: 0x5. -
CONSTANT_Double
Marks a constant pool entry as type Double: 0x6. -
CONSTANT_Class
Marks a constant pool entry as a Class: 0x7. -
CONSTANT_Fieldref
Marks a constant pool entry as a Field Reference: 0x9. -
CONSTANT_String
Marks a constant pool entry as type String: 0x8. -
CONSTANT_Methodref
Marks a constant pool entry as a Method Reference: 0xa. -
CONSTANT_InterfaceMethodref
Marks a constant pool entry as an Interface Method Reference: 0xb. -
CONSTANT_NameAndType
Marks a constant pool entry as a name and type: 0xc. -
CONSTANT_MethodHandle
Marks a constant pool entry as a Method Handle: 0xf. -
CONSTANT_MethodType
Marks a constant pool entry as a Method Type: 0x10. -
CONSTANT_Dynamic
Marks a constant pool entry as dynamically computed: 0x11.- Since:
- 6.3
- See Also:
-
CONSTANT_InvokeDynamic
Marks a constant pool entry as an Invoke Dynamic: 0x12. -
CONSTANT_Module
Marks a constant pool entry as a Module Reference: 0x13.- Since:
- 6.1
- See Also:
-
CONSTANT_Package
Marks a constant pool entry as a Package Reference: 0x14.- Since:
- 6.1
- See Also:
-
STATIC_INITIALIZER_NAME
The name of the static initializer, also called "class initialization method" or "interface initialization method". This is "<clinit>".- See Also:
-
CONSTRUCTOR_NAME
The name of every constructor method in a class, also called "instance initialization method". This is "<init>".- See Also:
-
MAX_CP_ENTRIES
Maximum Constant Pool entries: 65535. One of the limitations of the Java Virtual Machine. -
MAX_CODE_SIZE
Maximum code size (plus one; the code size must be LESS than this): 65536.One of the limitations of the Java Virtual Machine. Note vmspec2 page 152 ("Limitations") says:
"The amount of code per non-native, non-abstract method is limited to 65536 bytes by the sizes of the indices in the exception_table of the Code attribute (§4.7.3), in the LineNumberTable attribute (§4.7.8), and in the LocalVariableTable attribute (§4.7.9)." However this should be taken as an upper limit rather than the defined maximum. On page 134 (4.8.1 Static Constants) of the same spec, it says: "The value of the code_length item must be less than 65536."
The entry in the Limitations section has been removed from later versions of the specification; it is not present in the Java SE 8 edition.
-
MAX_ARRAY_DIMENSIONS
The maximum number of dimensions in an array: 255. One of the limitations of the Java Virtual Machine. -
NOP
Java VM opcode 0. -
ACONST_NULL
Java VM opcode 1. -
ICONST_M1
Java VM opcode 2. -
ICONST_0
Java VM opcode 3. -
ICONST_1
Java VM opcode 4. -
ICONST_2
Java VM opcode 5. -
ICONST_3
Java VM opcode 6. -
ICONST_4
Java VM opcode 7. -
ICONST_5
Java VM opcode 8. -
LCONST_0
Java VM opcode 9. -
LCONST_1
Java VM opcode 10. -
FCONST_0
Java VM opcode 11. -
FCONST_1
Java VM opcode 12. -
FCONST_2
Java VM opcode 13. -
DCONST_0
Java VM opcode 14. -
DCONST_1
Java VM opcode 15. -
BIPUSH
Java VM opcode 16. -
SIPUSH
Java VM opcode 17. -
LDC
Java VM opcode 18. -
LDC_W
Java VM opcode 19. -
LDC2_W
Java VM opcode 20. -
ILOAD
Java VM opcode 21. -
LLOAD
Java VM opcode 22. -
FLOAD
Java VM opcode 23. -
DLOAD
Java VM opcode 24. -
ALOAD
Java VM opcode 25. -
ILOAD_0
Java VM opcode 26. -
ILOAD_1
Java VM opcode 27. -
ILOAD_2
Java VM opcode 28. -
ILOAD_3
Java VM opcode 29. -
LLOAD_0
Java VM opcode 30. -
LLOAD_1
Java VM opcode 31. -
LLOAD_2
Java VM opcode 32. -
LLOAD_3
Java VM opcode 33. -
FLOAD_0
Java VM opcode 34. -
FLOAD_1
Java VM opcode 35. -
FLOAD_2
Java VM opcode 36. -
FLOAD_3
Java VM opcode 37. -
DLOAD_0
Java VM opcode 38. -
DLOAD_1
Java VM opcode 39. -
DLOAD_2
Java VM opcode 40. -
DLOAD_3
Java VM opcode 41. -
ALOAD_0
Java VM opcode 42. -
ALOAD_1
Java VM opcode 43. -
ALOAD_2
Java VM opcode 44. -
ALOAD_3
Java VM opcode 45. -
IALOAD
Java VM opcode 46. -
LALOAD
Java VM opcode 47. -
FALOAD
Java VM opcode 48. -
DALOAD
Java VM opcode 49. -
AALOAD
Java VM opcode 50. -
BALOAD
Java VM opcode 51. -
CALOAD
Java VM opcode 52. -
SALOAD
Java VM opcode 53. -
ISTORE
Java VM opcode 54. -
LSTORE
Java VM opcode 55. -
FSTORE
Java VM opcode 56. -
DSTORE
Java VM opcode 57. -
ASTORE
Java VM opcode 58. -
ISTORE_0
Java VM opcode 59. -
ISTORE_1
Java VM opcode 60. -
ISTORE_2
Java VM opcode 61. -
ISTORE_3
Java VM opcode 62. -
LSTORE_0
Java VM opcode 63. -
LSTORE_1
Java VM opcode 64. -
LSTORE_2
Java VM opcode 65. -
LSTORE_3
Java VM opcode 66. -
FSTORE_0
Java VM opcode 67. -
FSTORE_1
Java VM opcode 68. -
FSTORE_2
Java VM opcode 69. -
FSTORE_3
Java VM opcode 70. -
DSTORE_0
Java VM opcode 71. -
DSTORE_1
Java VM opcode 72. -
DSTORE_2
Java VM opcode 73. -
DSTORE_3
Java VM opcode 74. -
ASTORE_0
Java VM opcode 75. -
ASTORE_1
Java VM opcode 76. -
ASTORE_2
Java VM opcode 77. -
ASTORE_3
Java VM opcode 78. -
IASTORE
Java VM opcode 79. -
LASTORE
Java VM opcode 80. -
FASTORE
Java VM opcode 81. -
DASTORE
Java VM opcode 82. -
AASTORE
Java VM opcode 83. -
BASTORE
Java VM opcode 84. -
CASTORE
Java VM opcode 85. -
SASTORE
Java VM opcode 86. -
POP
Java VM opcode 87. -
POP2
Java VM opcode 88. -
DUP
Java VM opcode 89. -
DUP_X1
Java VM opcode 90. -
DUP_X2
Java VM opcode 91. -
DUP2
Java VM opcode 92. -
DUP2_X1
Java VM opcode 93. -
DUP2_X2
Java VM opcode 94. -
SWAP
Java VM opcode 95. -
IADD
Java VM opcode 96. -
LADD
Java VM opcode 97. -
FADD
Java VM opcode 98. -
DADD
Java VM opcode 99. -
ISUB
Java VM opcode 100. -
LSUB
Java VM opcode 101. -
FSUB
Java VM opcode 102. -
DSUB
Java VM opcode 103. -
IMUL
Java VM opcode 104. -
LMUL
Java VM opcode 105. -
FMUL
Java VM opcode 106. -
DMUL
Java VM opcode 107. -
IDIV
Java VM opcode 108. -
LDIV
Java VM opcode 109. -
FDIV
Java VM opcode 110. -
DDIV
Java VM opcode 111. -
IREM
Java VM opcode 112. -
LREM
Java VM opcode 113. -
FREM
Java VM opcode 114. -
DREM
Java VM opcode 115. -
INEG
Java VM opcode 116. -
LNEG
Java VM opcode 117. -
FNEG
Java VM opcode 118. -
DNEG
Java VM opcode 119. -
ISHL
Java VM opcode 120. -
LSHL
Java VM opcode 121. -
ISHR
Java VM opcode 122. -
LSHR
Java VM opcode 123. -
IUSHR
Java VM opcode 124. -
LUSHR
Java VM opcode 125. -
IAND
Java VM opcode 126. -
LAND
Java VM opcode 127. -
IOR
Java VM opcode 128. -
LOR
Java VM opcode 129. -
IXOR
Java VM opcode 130. -
LXOR
Java VM opcode 131. -
IINC
Java VM opcode 132. -
I2L
Java VM opcode 133. -
I2F
Java VM opcode 134. -
I2D
Java VM opcode 135. -
L2I
Java VM opcode 136. -
L2F
Java VM opcode 137. -
L2D
Java VM opcode 138. -
F2I
Java VM opcode 139. -
F2L
Java VM opcode 140. -
F2D
Java VM opcode 141. -
D2I
Java VM opcode 142. -
D2L
Java VM opcode 143. -
D2F
Java VM opcode 144. -
I2B
Java VM opcode 145. -
INT2BYTE
Java VM opcode 145. -
I2C
Java VM opcode 146. -
INT2CHAR
Java VM opcode 146. -
I2S
Java VM opcode 147. -
INT2SHORT
Java VM opcode 147. -
LCMP
Java VM opcode 148. -
FCMPL
Java VM opcode 149. -
FCMPG
Java VM opcode 150. -
DCMPL
Java VM opcode 151. -
DCMPG
Java VM opcode 152. -
IFEQ
Java VM opcode 153. -
IFNE
Java VM opcode 154. -
IFLT
Java VM opcode 155. -
IFGE
Java VM opcode 156. -
IFGT
Java VM opcode 157. -
IFLE
Java VM opcode 158. -
IF_ICMPEQ
Java VM opcode 159. -
IF_ICMPNE
Java VM opcode 160. -
IF_ICMPLT
Java VM opcode 161. -
IF_ICMPGE
Java VM opcode 162. -
IF_ICMPGT
Java VM opcode 163. -
IF_ICMPLE
Java VM opcode 164. -
IF_ACMPEQ
Java VM opcode 165. -
IF_ACMPNE
Java VM opcode 166. -
GOTO
Java VM opcode 167. -
JSR
Java VM opcode 168. -
RET
Java VM opcode 169. -
TABLESWITCH
Java VM opcode 170. -
LOOKUPSWITCH
Java VM opcode 171. -
IRETURN
Java VM opcode 172. -
LRETURN
Java VM opcode 173. -
FRETURN
Java VM opcode 174. -
DRETURN
Java VM opcode 175. -
ARETURN
Java VM opcode 176. -
RETURN
Java VM opcode 177. -
GETSTATIC
Java VM opcode 178. -
PUTSTATIC
Java VM opcode 179. -
GETFIELD
Java VM opcode 180. -
PUTFIELD
Java VM opcode 181. -
INVOKEVIRTUAL
Java VM opcode 182. -
INVOKESPECIAL
Java VM opcode 183. -
INVOKENONVIRTUAL
Java VM opcode 183. -
INVOKESTATIC
Java VM opcode 184. -
INVOKEINTERFACE
Java VM opcode 185. -
INVOKEDYNAMIC
Java VM opcode 186. -
NEW
Java VM opcode 187. -
NEWARRAY
Java VM opcode 188. -
ANEWARRAY
Java VM opcode 189. -
ARRAYLENGTH
Java VM opcode 190. -
ATHROW
Java VM opcode 191. -
CHECKCAST
Java VM opcode 192. -
INSTANCEOF
Java VM opcode 193. -
MONITORENTER
Java VM opcode 194. -
MONITOREXIT
Java VM opcode 195. -
WIDE
Java VM opcode 196. -
MULTIANEWARRAY
Java VM opcode 197. -
IFNULL
Java VM opcode 198. -
IFNONNULL
Java VM opcode 199. -
GOTO_W
Java VM opcode 200. -
JSR_W
Java VM opcode 201. -
BREAKPOINT
JVM internal opcode 202. -
LDC_QUICK
JVM internal opcode 203. -
LDC_W_QUICK
JVM internal opcode 204. -
LDC2_W_QUICK
JVM internal opcode 205. -
GETFIELD_QUICK
JVM internal opcode 206. -
PUTFIELD_QUICK
JVM internal opcode 207. -
GETFIELD2_QUICK
JVM internal opcode 208. -
PUTFIELD2_QUICK
JVM internal opcode 209. -
GETSTATIC_QUICK
JVM internal opcode 210. -
PUTSTATIC_QUICK
JVM internal opcode 211. -
GETSTATIC2_QUICK
JVM internal opcode 212. -
PUTSTATIC2_QUICK
JVM internal opcode 213. -
INVOKEVIRTUAL_QUICK
JVM internal opcode 214. -
INVOKENONVIRTUAL_QUICK
JVM internal opcode 215. -
INVOKESUPER_QUICK
JVM internal opcode 216. -
INVOKESTATIC_QUICK
JVM internal opcode 217. -
INVOKEINTERFACE_QUICK
JVM internal opcode 218. -
INVOKEVIRTUALOBJECT_QUICK
JVM internal opcode 219. -
NEW_QUICK
JVM internal opcode 221. -
ANEWARRAY_QUICK
JVM internal opcode 222. -
MULTIANEWARRAY_QUICK
JVM internal opcode 223. -
CHECKCAST_QUICK
JVM internal opcode 224. -
INSTANCEOF_QUICK
JVM internal opcode 225. -
INVOKEVIRTUAL_QUICK_W
JVM internal opcode 226. -
GETFIELD_QUICK_W
JVM internal opcode 227. -
PUTFIELD_QUICK_W
JVM internal opcode 228. -
IMPDEP1
JVM internal opcode 254. -
IMPDEP2
JVM internal opcode 255. -
PUSH
BCEL virtual instruction for pushing an arbitrary data type onto the stack: 4711. Will be converted to the appropriate JVM opcode when the class is dumped.- See Also:
-
SWITCH
BCEL virtual instruction for either LOOKUPSWITCH or TABLESWITCH: 4712. Will be converted to the appropriate JVM opcode when the class is dumped.- See Also:
-
UNDEFINED
Illegal opcode: -1.- See Also:
-
UNPREDICTABLE
Illegal opcode: -2.- See Also:
-
RESERVED
Illegal opcode: -3.- See Also:
-
ILLEGAL_OPCODE
Mnemonic for an illegal opcode: "<illegal opcode>".- See Also:
-
ILLEGAL_TYPE
Mnemonic for an illegal type: "<illegal type>".- See Also:
-
T_BOOLEAN
Boolean data type: 0x4. -
T_CHAR
Char data type: 0x5. -
T_FLOAT
Float data type: 0x6. -
T_DOUBLE
Double data type: 0x7. -
T_BYTE
Byte data type: 0x8. -
T_SHORT
Short data type: 0x9. -
T_INT
Int data type: 0xa. -
T_LONG
Long data type: 0xb. -
T_VOID
Void data type (non-standard).- See Also:
-
T_ARRAY
Array data type.- See Also:
-
T_OBJECT
Object data type.- See Also:
-
T_REFERENCE
Reference data type (deprecated).- See Also:
-
T_UNKNOWN
Unknown data type.- See Also:
-
T_ADDRESS
Address data type.- See Also:
-
SHORT_TYPE_NAMES
The signature characters corresponding to primitive types, e.g., SHORT_TYPE_NAMES[T_INT] = "I" -
OPCODE_NAMES_LENGTH
- Since:
- 6.0
-
ATTR_UNKNOWN
Attributes and their corresponding names.- See Also:
-
ATTR_SOURCE_FILE
- See Also:
-
ATTR_CONSTANT_VALUE
- See Also:
-
ATTR_CODE
- See Also:
-
ATTR_EXCEPTIONS
- See Also:
-
ATTR_LINE_NUMBER_TABLE
- See Also:
-
ATTR_LOCAL_VARIABLE_TABLE
- See Also:
-
ATTR_INNER_CLASSES
- See Also:
-
ATTR_SYNTHETIC
- See Also:
-
ATTR_DEPRECATED
- See Also:
-
ATTR_PMG
- See Also:
-
ATTR_SIGNATURE
- See Also:
-
ATTR_STACK_MAP
- See Also:
-
ATTR_RUNTIME_VISIBLE_ANNOTATIONS
- See Also:
-
ATTR_RUNTIME_INVISIBLE_ANNOTATIONS
- See Also:
-
ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
- See Also:
-
ATTR_ANNOTATION_DEFAULT
- See Also:
-
ATTR_LOCAL_VARIABLE_TYPE_TABLE
- See Also:
-
ATTR_ENCLOSING_METHOD
- See Also:
-
ATTR_STACK_MAP_TABLE
- See Also:
-
ATTR_BOOTSTRAP_METHODS
- See Also:
-
ATTR_METHOD_PARAMETERS
- See Also:
-
ATTR_MODULE
- See Also:
-
ATTR_MODULE_PACKAGES
- See Also:
-
ATTR_MODULE_MAIN_CLASS
- See Also:
-
ATTR_NEST_HOST
- See Also:
-
ATTR_NEST_MEMBERS
- See Also:
-
ATTR_RECORD
- See Also:
-
KNOWN_ATTRIBUTES
- See Also:
-
ITEM_Bogus
Constants used in the StackMap attribute.- See Also:
-
ITEM_Integer
- See Also:
-
ITEM_Float
- See Also:
-
ITEM_Double
- See Also:
-
ITEM_Long
- See Also:
-
ITEM_Null
- See Also:
-
ITEM_InitObject
- See Also:
-
ITEM_Object
- See Also:
-
ITEM_NewObject
- See Also:
-
SAME_FRAME
Constants used to identify StackMapEntry types. For those types which can specify a range, the constant names the lowest value.- See Also:
-
SAME_LOCALS_1_STACK_ITEM_FRAME
- See Also:
-
SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED
- See Also:
-
CHOP_FRAME
- See Also:
-
SAME_FRAME_EXTENDED
- See Also:
-
APPEND_FRAME
- See Also:
-
FULL_FRAME
- See Also:
-
SAME_FRAME_MAX
Constants that define the maximum value of those constants which store ranges.- See Also:
-
SAME_LOCALS_1_STACK_ITEM_FRAME_MAX
- See Also:
-
CHOP_FRAME_MAX
- See Also:
-
APPEND_FRAME_MAX
- See Also:
-
REF_getField
- See Also:
-
REF_getStatic
- See Also:
-
REF_putField
- See Also:
-
REF_putStatic
- See Also:
-
REF_invokeVirtual
- See Also:
-
REF_invokeStatic
- See Also:
-
REF_invokeSpecial
- See Also:
-
REF_newInvokeSpecial
- See Also:
-
REF_invokeInterface
- See Also:
-
-
Method Details
-
getAccessName
- Parameters:
index- index intoACCESS_NAMES.- Returns:
- the ACCESS_NAMES entry at the given index
- Since:
- 6.0
-
getAttributeName
- Parameters:
index- index intoACCESS_NAMES.- Returns:
- the attribute name
- Since:
- 6.0
-
getClassTypeName
The primitive class names corresponding to the T_XX constants, e.g., CLASS_TYPE_NAMES[T_INT] = "java.lang.Integer"- Parameters:
index- index intoCLASS_TYPE_NAMES.- Returns:
- the class name
- Since:
- 6.0
-
getConstantName
- Parameters:
index- index intoCONSTANT_NAMES.- Returns:
- the CONSTANT_NAMES entry at the given index
- Since:
- 6.0
-
getConsumeStack
- Parameters:
index- index intoCONSUME_STACK.- Returns:
- Number of words consumed on operand stack
- Since:
- 6.0
-
getInterfacesImplementedByArrays
- Since:
- 6.0
-
getItemName
- Parameters:
index- index intoITEM_NAMES.- Returns:
- the item name
- Since:
- 6.0
-
getMethodHandleName
- Parameters:
index- index intoMETHODHANDLE_NAMES.- Returns:
- the method handle name
- Since:
- 6.0
-
getNoOfOperands
- Parameters:
index- index intoNO_OF_OPERANDS.- Returns:
- Number of byte code operands
- Since:
- 6.0
-
getOpcodeName
- Since:
- 6.0
-
getOperandType
- Since:
- 6.0
-
getOperandTypeCount
- Since:
- 6.0
-
getProduceStack
- Parameters:
index-- Returns:
- Number of words produced onto operand stack
- Since:
- 6.0
-
getShortTypeName
- Parameters:
index-- Returns:
- the short type name
- Since:
- 6.0
-
getTypeName
The primitive type names corresponding to the T_XX constants, e.g., TYPE_NAMES[T_INT] = "int"- Parameters:
index-- Returns:
- the type name
- Since:
- 6.0
-
MAJOR_9(53) instead.