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 SummaryFieldsModifier and TypeFieldDescriptionstatic final shortOne of the access flags for fields, methods, or classes.static final shortOne of the access flags for fields, methods, or classes.static final shortOne of the access flags for fields, methods, or classes.static final shortOne of the access flags for fields, methods, or classes.static final byteMarks a constant pool entry as a Classstatic final byteMarks a constant pool entry as type Double.static final byteMarks a constant pool entry as dynamically computed.static final byteMarks a constant pool entry as a Field Reference.static final byteMarks a constant pool entry as type Float.static final byteMarks a constant pool entry as type Integer.static final byteMarks a constant pool entry as an Interface Method Reference.static final byteMarks a constant pool entry as an Invoke Dynamicstatic final byteMarks a constant pool entry as type Long.static final byteMarks a constant pool entry as a Method Handle.static final byteMarks a constant pool entry as a Method Reference.static final byteMarks a constant pool entry as a Method Type.static final byteMarks a constant pool entry as a Module Reference.static final byteMarks a constant pool entry as a name and type.static final byteMarks a constant pool entry as a Package Reference.static final byteMarks a constant pool entry as type Stringstatic final byteMarks a constant pool entry as type UTF-8.static final intJava class file format Magic number (0xCAFEBABE)static final intThe maximum number of dimensions in an array (255).
- 
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 (0xCAFEBABE)
- 
ACC_FINALpublic 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_INTERFACEpublic static final short ACC_INTERFACEOne of the access flags for fields, methods, or classes.- See Also:
 
- 
ACC_ABSTRACTpublic static final short ACC_ABSTRACTOne of the access flags for fields, methods, or classes.- See Also:
 
- 
ACC_ANNOTATIONpublic static final short ACC_ANNOTATIONOne of the access flags for fields, methods, or classes.- See Also:
 
- 
CONSTANT_Utf8public static final byte CONSTANT_Utf8Marks a constant pool entry as type UTF-8.
- 
CONSTANT_Integerpublic static final byte CONSTANT_IntegerMarks a constant pool entry as type Integer.
- 
CONSTANT_Floatpublic static final byte CONSTANT_FloatMarks a constant pool entry as type Float.
- 
CONSTANT_Longpublic static final byte CONSTANT_LongMarks a constant pool entry as type Long.
- 
CONSTANT_Doublepublic static final byte CONSTANT_DoubleMarks a constant pool entry as type Double.
- 
CONSTANT_Classpublic static final byte CONSTANT_ClassMarks a constant pool entry as a Class
- 
CONSTANT_Fieldrefpublic static final byte CONSTANT_FieldrefMarks a constant pool entry as a Field Reference.
- 
CONSTANT_Stringpublic static final byte CONSTANT_StringMarks a constant pool entry as type String
- 
CONSTANT_Methodrefpublic static final byte CONSTANT_MethodrefMarks a constant pool entry as a Method Reference.
- 
CONSTANT_InterfaceMethodrefpublic static final byte CONSTANT_InterfaceMethodrefMarks a constant pool entry as an Interface Method Reference.
- 
CONSTANT_NameAndTypepublic static final byte CONSTANT_NameAndTypeMarks a constant pool entry as a name and type.
- 
CONSTANT_MethodHandlepublic static final byte CONSTANT_MethodHandleMarks a constant pool entry as a Method Handle.
- 
CONSTANT_MethodTypepublic static final byte CONSTANT_MethodTypeMarks a constant pool entry as a Method Type.
- 
CONSTANT_Dynamicpublic static final byte CONSTANT_DynamicMarks a constant pool entry as dynamically computed.
- 
CONSTANT_InvokeDynamicpublic static final byte CONSTANT_InvokeDynamicMarks a constant pool entry as an Invoke Dynamic
- 
CONSTANT_Modulepublic static final byte CONSTANT_ModuleMarks a constant pool entry as a Module Reference.
- 
CONSTANT_Packagepublic static final byte CONSTANT_PackageMarks a constant pool entry as a Package Reference.
- 
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.
 
- 
- 
Constructor Details- 
Constpublic Const()
 
- 
- 
Method Details- 
getConstantNameGet 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
 
 
-