Package org.apache.tomcat.util.bcel
Class Const
java.lang.Object
org.apache.tomcat.util.bcel.Const
Constants for the project, mostly defined in the JVM specification.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
One of the access flags for methods or classes: 1024.static final short
One of the access flags for classes: 8192.static final short
One of the access flags for fields, methods, or classes: 16.static final short
One of the access flags for classes: 512.static final byte
Marks a constant pool entry as a Class: 0x7.static final byte
Marks a constant pool entry as type Double: 0x6.static final byte
Marks a constant pool entry as dynamically computed: 0x11.static final byte
Marks a constant pool entry as a Field Reference: 0x9.static final byte
Marks a constant pool entry as type Float: 0x4.static final byte
Marks a constant pool entry as type Integer: 0x3.static final byte
Marks a constant pool entry as an Interface Method Reference: 0xb.static final byte
Marks a constant pool entry as an Invoke Dynamic: 0x12.static final byte
Marks a constant pool entry as type Long: 0x5.static final byte
Marks a constant pool entry as a Method Handle: 0xf.static final byte
Marks a constant pool entry as a Method Reference: 0xa.static final byte
Marks a constant pool entry as a Method Type: 0x10.static final byte
Marks a constant pool entry as a Module Reference: 0x13.static final byte
Marks a constant pool entry as a name and type: 0xc.static final byte
Marks a constant pool entry as a Package Reference: 0x14.static final byte
Marks a constant pool entry as type String: 0x8.static final byte
Marks a constant pool entry as type UTF-8: 0x1.static final int
Java class file format Magic number: -889275714.static final short
Major version number of class files for Java 22: 66.static final short
Major version number of class files for Java 23: 67.static final short
Major version number of class files for Java 24: 68.static final int
The maximum number of dimensions in an array: 255.static final short
Minor version number of class files for Java 22: 0.static final short
Minor version number of class files for Java 23: 0.static final short
Minor version number of class files for Java 24: 0. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getConstantName
(int index) Get the CONSTANT_NAMES entry at the given index.
-
Field Details
-
JVM_CLASSFILE_MAGIC
public static final int JVM_CLASSFILE_MAGICJava class file format Magic number: -889275714.- See Also:
-
ACC_FINAL
public static final short ACC_FINALOne of the access flags for fields, methods, or classes: 16.- See Also:
-
ACC_INTERFACE
public static final short ACC_INTERFACEOne of the access flags for classes: 512.- See Also:
-
ACC_ABSTRACT
public static final short ACC_ABSTRACTOne of the access flags for methods or classes: 1024.- See Also:
-
ACC_ANNOTATION
public static final short ACC_ANNOTATIONOne of the access flags for classes: 8192.- See Also:
-
CONSTANT_Utf8
public static final byte CONSTANT_Utf8Marks a constant pool entry as type UTF-8: 0x1.- See Also:
-
CONSTANT_Integer
public static final byte CONSTANT_IntegerMarks a constant pool entry as type Integer: 0x3.- See Also:
-
CONSTANT_Float
public static final byte CONSTANT_FloatMarks a constant pool entry as type Float: 0x4.- See Also:
-
CONSTANT_Long
public static final byte CONSTANT_LongMarks a constant pool entry as type Long: 0x5.- See Also:
-
CONSTANT_Double
public static final byte CONSTANT_DoubleMarks a constant pool entry as type Double: 0x6.- See Also:
-
CONSTANT_Class
public static final byte CONSTANT_ClassMarks a constant pool entry as a Class: 0x7.- See Also:
-
CONSTANT_Fieldref
public static final byte CONSTANT_FieldrefMarks a constant pool entry as a Field Reference: 0x9.- See Also:
-
CONSTANT_String
public static final byte CONSTANT_StringMarks a constant pool entry as type String: 0x8.- See Also:
-
CONSTANT_Methodref
public static final byte CONSTANT_MethodrefMarks a constant pool entry as a Method Reference: 0xa.- See Also:
-
CONSTANT_InterfaceMethodref
public static final byte CONSTANT_InterfaceMethodrefMarks a constant pool entry as an Interface Method Reference: 0xb.- See Also:
-
CONSTANT_NameAndType
public static final byte CONSTANT_NameAndTypeMarks a constant pool entry as a name and type: 0xc.- See Also:
-
CONSTANT_MethodHandle
public static final byte CONSTANT_MethodHandleMarks a constant pool entry as a Method Handle: 0xf.- See Also:
-
CONSTANT_MethodType
public static final byte CONSTANT_MethodTypeMarks a constant pool entry as a Method Type: 0x10.- See Also:
-
CONSTANT_Dynamic
public static final byte CONSTANT_DynamicMarks a constant pool entry as dynamically computed: 0x11.- See Also:
-
CONSTANT_InvokeDynamic
public static final byte CONSTANT_InvokeDynamicMarks a constant pool entry as an Invoke Dynamic: 0x12.- See Also:
-
CONSTANT_Module
public static final byte CONSTANT_ModuleMarks a constant pool entry as a Module Reference: 0x13.- See Also:
-
CONSTANT_Package
public static final byte CONSTANT_PackageMarks a constant pool entry as a Package Reference: 0x14.- See Also:
-
MAX_ARRAY_DIMENSIONS
public static final int MAX_ARRAY_DIMENSIONSThe maximum number of dimensions in an array: 255. One of the limitations of the Java Virtual Machine.- See Also:
-
MINOR_22
public static final short MINOR_22Minor version number of class files for Java 22: 0.- Since:
- 6.10.0
- See Also:
-
MINOR_23
public static final short MINOR_23Minor version number of class files for Java 23: 0.- Since:
- 6.10.0
- See Also:
-
MINOR_24
public static final short MINOR_24Minor version number of class files for Java 24: 0.- Since:
- 6.10.0
- See Also:
-
MAJOR_22
public static final short MAJOR_22Major version number of class files for Java 22: 66.- Since:
- 6.10.0
- See Also:
-
MAJOR_23
public static final short MAJOR_23Major version number of class files for Java 23: 67.- Since:
- 6.10.0
- See Also:
-
MAJOR_24
public static final short MAJOR_24Major version number of class files for Java 24: 68.- Since:
- 6.10.0
- See Also:
-
-
Constructor Details
-
Const
public Const()
-
-
Method Details
-
getConstantName
Get the CONSTANT_NAMES entry at the given index.- Parameters:
index
- index intoCONSTANT_NAMES
.- Returns:
- the CONSTANT_NAMES entry at the given index
-