Class Const
java.lang.Object
org.apache.tomcat.util.bcel.Const
Constants for the project, mostly defined in the JVM specification.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic 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 fields, methods, or classes: 16.static final shortOne of the access flags for classes: 512.static 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 intJava class file format Magic number: -889275714.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 intThe maximum number of dimensions in an array: 255.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.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetConstantName(int index) Get the CONSTANT_NAMES entry at the given index.
- 
Field Details- 
JVM_CLASSFILE_MAGICpublic static final int JVM_CLASSFILE_MAGICJava class file format Magic number: -889275714.- See Also:
 
- 
ACC_FINALpublic static final short ACC_FINALOne of the access flags for fields, methods, or classes: 16.- See Also:
 
- 
ACC_INTERFACEpublic static final short ACC_INTERFACEOne of the access flags for classes: 512.- See Also:
 
- 
ACC_ABSTRACTpublic static final short ACC_ABSTRACTOne of the access flags for methods or classes: 1024.- See Also:
 
- 
ACC_ANNOTATIONpublic static final short ACC_ANNOTATIONOne of the access flags for classes: 8192.- See Also:
 
- 
CONSTANT_Utf8public static final byte CONSTANT_Utf8Marks a constant pool entry as type UTF-8: 0x1.- See Also:
 
- 
CONSTANT_Integerpublic static final byte CONSTANT_IntegerMarks a constant pool entry as type Integer: 0x3.- See Also:
 
- 
CONSTANT_Floatpublic static final byte CONSTANT_FloatMarks a constant pool entry as type Float: 0x4.- See Also:
 
- 
CONSTANT_Longpublic static final byte CONSTANT_LongMarks a constant pool entry as type Long: 0x5.- See Also:
 
- 
CONSTANT_Doublepublic static final byte CONSTANT_DoubleMarks a constant pool entry as type Double: 0x6.- See Also:
 
- 
CONSTANT_Classpublic static final byte CONSTANT_ClassMarks a constant pool entry as a Class: 0x7.- See Also:
 
- 
CONSTANT_Fieldrefpublic static final byte CONSTANT_FieldrefMarks a constant pool entry as a Field Reference: 0x9.- See Also:
 
- 
CONSTANT_Stringpublic static final byte CONSTANT_StringMarks a constant pool entry as type String: 0x8.- See Also:
 
- 
CONSTANT_Methodrefpublic static final byte CONSTANT_MethodrefMarks a constant pool entry as a Method Reference: 0xa.- See Also:
 
- 
CONSTANT_InterfaceMethodrefpublic static final byte CONSTANT_InterfaceMethodrefMarks a constant pool entry as an Interface Method Reference: 0xb.- See Also:
 
- 
CONSTANT_NameAndTypepublic static final byte CONSTANT_NameAndTypeMarks a constant pool entry as a name and type: 0xc.- See Also:
 
- 
CONSTANT_MethodHandlepublic static final byte CONSTANT_MethodHandleMarks a constant pool entry as a Method Handle: 0xf.- See Also:
 
- 
CONSTANT_MethodTypepublic static final byte CONSTANT_MethodTypeMarks a constant pool entry as a Method Type: 0x10.- See Also:
 
- 
CONSTANT_Dynamicpublic static final byte CONSTANT_DynamicMarks a constant pool entry as dynamically computed: 0x11.- See Also:
 
- 
CONSTANT_InvokeDynamicpublic static final byte CONSTANT_InvokeDynamicMarks a constant pool entry as an Invoke Dynamic: 0x12.- See Also:
 
- 
CONSTANT_Modulepublic static final byte CONSTANT_ModuleMarks a constant pool entry as a Module Reference: 0x13.- See Also:
 
- 
CONSTANT_Packagepublic static final byte CONSTANT_PackageMarks a constant pool entry as a Package Reference: 0x14.- See Also:
 
- 
MAX_ARRAY_DIMENSIONSpublic 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_22public static final short MINOR_22Minor version number of class files for Java 22: 0.- Since:
- 6.10.0
- See Also:
 
- 
MINOR_23public static final short MINOR_23Minor version number of class files for Java 23: 0.- Since:
- 6.10.0
- See Also:
 
- 
MINOR_24public static final short MINOR_24Minor version number of class files for Java 24: 0.- Since:
- 6.10.0
- See Also:
 
- 
MAJOR_22public static final short MAJOR_22Major version number of class files for Java 22: 66.- Since:
- 6.10.0
- See Also:
 
- 
MAJOR_23public static final short MAJOR_23Major version number of class files for Java 23: 67.- Since:
- 6.10.0
- See Also:
 
- 
MAJOR_24public static final short MAJOR_24Major version number of class files for Java 24: 68.- Since:
- 6.10.0
- See Also:
 
 
- 
- 
Constructor Details- 
Constpublic Const()
 
- 
- 
Method Details- 
getConstantNameGet the CONSTANT_NAMES entry at the given index.- Parameters:
- index- index into- CONSTANT_NAMES.
- Returns:
- the CONSTANT_NAMES entry at the given index
 
 
-