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 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
-
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) -
ACC_FINAL
public static final short ACC_FINALOne of the access flags for fields, methods, or classes.- 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_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. -
CONSTANT_Integer
public static final byte CONSTANT_IntegerMarks a constant pool entry as type Integer. -
CONSTANT_Float
public static final byte CONSTANT_FloatMarks a constant pool entry as type Float. -
CONSTANT_Long
public static final byte CONSTANT_LongMarks a constant pool entry as type Long. -
CONSTANT_Double
public static final byte CONSTANT_DoubleMarks a constant pool entry as type Double. -
CONSTANT_Class
public static final byte CONSTANT_ClassMarks a constant pool entry as a Class -
CONSTANT_Fieldref
public static final byte CONSTANT_FieldrefMarks a constant pool entry as a Field Reference. -
CONSTANT_String
public static final byte CONSTANT_StringMarks a constant pool entry as type String -
CONSTANT_Methodref
public static final byte CONSTANT_MethodrefMarks a constant pool entry as a Method Reference. -
CONSTANT_InterfaceMethodref
public static final byte CONSTANT_InterfaceMethodrefMarks a constant pool entry as an Interface Method Reference. -
CONSTANT_NameAndType
public static final byte CONSTANT_NameAndTypeMarks a constant pool entry as a name and type. -
CONSTANT_MethodHandle
public static final byte CONSTANT_MethodHandleMarks a constant pool entry as a Method Handle. -
CONSTANT_MethodType
public static final byte CONSTANT_MethodTypeMarks a constant pool entry as a Method Type. -
CONSTANT_Dynamic
public static final byte CONSTANT_DynamicMarks a constant pool entry as dynamically computed. -
CONSTANT_InvokeDynamic
public static final byte CONSTANT_InvokeDynamicMarks a constant pool entry as an Invoke Dynamic -
CONSTANT_Module
public static final byte CONSTANT_ModuleMarks a constant pool entry as a Module Reference. -
CONSTANT_Package
public static final byte CONSTANT_PackageMarks a constant pool entry as a Package Reference. -
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.
-
-
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
-