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
FieldsModifier and TypeFieldDescriptionstatic final short
One of the access flags for fields, methods, or classes.static final short
One of the access flags for fields, methods, or classes.static final short
One of the access flags for fields, methods, or classes.static final short
One of the access flags for fields, methods, or classes.static final byte
Marks a constant pool entry as a Classstatic final byte
Marks a constant pool entry as type Double.static final byte
Marks a constant pool entry as dynamically computed.static final byte
Marks a constant pool entry as a Field Reference.static final byte
Marks a constant pool entry as type Float.static final byte
Marks a constant pool entry as type Integer.static final byte
Marks a constant pool entry as an Interface Method Reference.static final byte
Marks a constant pool entry as an Invoke Dynamicstatic final byte
Marks a constant pool entry as type Long.static final byte
Marks a constant pool entry as a Method Handle.static final byte
Marks a constant pool entry as a Method Reference.static final byte
Marks a constant pool entry as a Method Type.static final byte
Marks a constant pool entry as a Module Reference.static final byte
Marks a constant pool entry as a name and type.static final byte
Marks a constant pool entry as a Package Reference.static final byte
Marks a constant pool entry as type Stringstatic final byte
Marks a constant pool entry as type UTF-8.static final int
Java class file format Magic number (0xCAFEBABE)static final int
The maximum number of dimensions in an array (255). -
Constructor Summary
Constructors -
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 (0xCAFEBABE)- See Also:
-
ACC_FINAL
public static final short ACC_FINALOne of the access flags for fields, methods, or classes.- See Also:
-
ACC_INTERFACE
public static final short ACC_INTERFACEOne of the access flags for fields, methods, or classes.- See Also:
-
ACC_ABSTRACT
public static final short ACC_ABSTRACTOne of the access flags for fields, methods, or classes.- See Also:
-
ACC_ANNOTATION
public static final short ACC_ANNOTATIONOne of the access flags for fields, methods, or classes.- See Also:
-
CONSTANT_Utf8
public static final byte CONSTANT_Utf8Marks a constant pool entry as type UTF-8.- See Also:
-
CONSTANT_Integer
public static final byte CONSTANT_IntegerMarks a constant pool entry as type Integer.- See Also:
-
CONSTANT_Float
public static final byte CONSTANT_FloatMarks a constant pool entry as type Float.- See Also:
-
CONSTANT_Long
public static final byte CONSTANT_LongMarks a constant pool entry as type Long.- See Also:
-
CONSTANT_Double
public static final byte CONSTANT_DoubleMarks a constant pool entry as type Double.- See Also:
-
CONSTANT_Class
public static final byte CONSTANT_ClassMarks a constant pool entry as a Class- See Also:
-
CONSTANT_Fieldref
public static final byte CONSTANT_FieldrefMarks a constant pool entry as a Field Reference.- See Also:
-
CONSTANT_String
public static final byte CONSTANT_StringMarks a constant pool entry as type String- See Also:
-
CONSTANT_Methodref
public static final byte CONSTANT_MethodrefMarks a constant pool entry as a Method Reference.- See Also:
-
CONSTANT_InterfaceMethodref
public static final byte CONSTANT_InterfaceMethodrefMarks a constant pool entry as an Interface Method Reference.- See Also:
-
CONSTANT_NameAndType
public static final byte CONSTANT_NameAndTypeMarks a constant pool entry as a name and type.- See Also:
-
CONSTANT_MethodHandle
public static final byte CONSTANT_MethodHandleMarks a constant pool entry as a Method Handle.- See Also:
-
CONSTANT_MethodType
public static final byte CONSTANT_MethodTypeMarks a constant pool entry as a Method Type.- See Also:
-
CONSTANT_Dynamic
public static final byte CONSTANT_DynamicMarks a constant pool entry as dynamically computed.- See Also:
-
CONSTANT_InvokeDynamic
public static final byte CONSTANT_InvokeDynamicMarks a constant pool entry as an Invoke Dynamic- See Also:
-
CONSTANT_Module
public static final byte CONSTANT_ModuleMarks a constant pool entry as a Module Reference.- See Also:
-
CONSTANT_Package
public static final byte CONSTANT_PackageMarks a constant pool entry as a Package Reference.- 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:
-
-
Constructor Details
-
Const
public Const()
-
-
Method Details
-
getConstantName
Get the CONSTANT_NAMES entry at the given index.- Parameters:
index
- The index for which the constant name is required- Returns:
- the CONSTANT_NAMES entry at the given index
-