Package org.apache.tomcat.util.bcel
Class Const
- java.lang.Object
-
- org.apache.tomcat.util.bcel.Const
-
public final class Const extends java.lang.Object
Constants for the project, mostly defined in the JVM specification.
-
-
Field Summary
Fields Modifier and Type Field Description static short
ACC_ABSTRACT
One of the access flags for methods or classes: 1024.static short
ACC_ANNOTATION
One of the access flags for classes: 8192.static short
ACC_FINAL
One of the access flags for fields, methods, or classes: 16.static short
ACC_INTERFACE
One of the access flags for classes: 512.static byte
CONSTANT_Class
Marks a constant pool entry as a Class: 7.static byte
CONSTANT_Double
Marks a constant pool entry as type Double: 6.static byte
CONSTANT_Dynamic
Marks a constant pool entry as dynamically computed: 17.static byte
CONSTANT_Fieldref
Marks a constant pool entry as a Field Reference: 9.static byte
CONSTANT_Float
Marks a constant pool entry as type Float: 4.static byte
CONSTANT_Integer
Marks a constant pool entry as type Integer: 3.static byte
CONSTANT_InterfaceMethodref
Marks a constant pool entry as an Interface Method Reference: 11.static byte
CONSTANT_InvokeDynamic
Marks a constant pool entry as an Invoke Dynamic: 18.static byte
CONSTANT_Long
Marks a constant pool entry as type Long: 5.static byte
CONSTANT_MethodHandle
Marks a constant pool entry as a Method Handle: 15.static byte
CONSTANT_Methodref
Marks a constant pool entry as a Method Reference: 10.static byte
CONSTANT_MethodType
Marks a constant pool entry as a Method Type: 16.static byte
CONSTANT_Module
Marks a constant pool entry as a Module Reference: 19.static byte
CONSTANT_NameAndType
Marks a constant pool entry as a name and type: 12.static byte
CONSTANT_Package
Marks a constant pool entry as a Package Reference: 20.static byte
CONSTANT_String
Marks a constant pool entry as type String: 8.static byte
CONSTANT_Utf8
Marks a constant pool entry as type UTF-8: 1.static int
JVM_CLASSFILE_MAGIC
Java class file format Magic number: -889275714.static int
MAX_ARRAY_DIMENSIONS
The maximum number of dimensions in an array: 255.
-
Constructor Summary
Constructors Constructor Description Const()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getConstantName(int index)
Get the CONSTANT_NAMES entry at the given index.
-
-
-
Field Detail
-
JVM_CLASSFILE_MAGIC
public static final int JVM_CLASSFILE_MAGIC
Java class file format Magic number: -889275714.
-
ACC_FINAL
public static final short ACC_FINAL
One of the access flags for fields, methods, or classes: 16.- 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_INTERFACE
One of the access flags for classes: 512.- See Also:
ACC_FINAL
, Constant Field Values
-
ACC_ABSTRACT
public static final short ACC_ABSTRACT
One of the access flags for methods or classes: 1024.- See Also:
ACC_FINAL
, Constant Field Values
-
ACC_ANNOTATION
public static final short ACC_ANNOTATION
One of the access flags for classes: 8192.- See Also:
ACC_FINAL
, Constant Field Values
-
CONSTANT_Utf8
public static final byte CONSTANT_Utf8
Marks a constant pool entry as type UTF-8: 1.
-
CONSTANT_Integer
public static final byte CONSTANT_Integer
Marks a constant pool entry as type Integer: 3.
-
CONSTANT_Float
public static final byte CONSTANT_Float
Marks a constant pool entry as type Float: 4.
-
CONSTANT_Long
public static final byte CONSTANT_Long
Marks a constant pool entry as type Long: 5.
-
CONSTANT_Double
public static final byte CONSTANT_Double
Marks a constant pool entry as type Double: 6.
-
CONSTANT_Class
public static final byte CONSTANT_Class
Marks a constant pool entry as a Class: 7.
-
CONSTANT_Fieldref
public static final byte CONSTANT_Fieldref
Marks a constant pool entry as a Field Reference: 9.
-
CONSTANT_String
public static final byte CONSTANT_String
Marks a constant pool entry as type String: 8.
-
CONSTANT_Methodref
public static final byte CONSTANT_Methodref
Marks a constant pool entry as a Method Reference: 10.
-
CONSTANT_InterfaceMethodref
public static final byte CONSTANT_InterfaceMethodref
Marks a constant pool entry as an Interface Method Reference: 11.
-
CONSTANT_NameAndType
public static final byte CONSTANT_NameAndType
Marks a constant pool entry as a name and type: 12.
-
CONSTANT_MethodHandle
public static final byte CONSTANT_MethodHandle
Marks a constant pool entry as a Method Handle: 15.
-
CONSTANT_MethodType
public static final byte CONSTANT_MethodType
Marks a constant pool entry as a Method Type: 16.
-
CONSTANT_Dynamic
public static final byte CONSTANT_Dynamic
Marks a constant pool entry as dynamically computed: 17.- See Also:
- Change request for JEP 309, Constant Field Values
-
CONSTANT_InvokeDynamic
public static final byte CONSTANT_InvokeDynamic
Marks a constant pool entry as an Invoke Dynamic: 18.
-
CONSTANT_Module
public static final byte CONSTANT_Module
Marks a constant pool entry as a Module Reference: 19.
-
CONSTANT_Package
public static final byte CONSTANT_Package
Marks a constant pool entry as a Package Reference: 20.
-
MAX_ARRAY_DIMENSIONS
public static final int MAX_ARRAY_DIMENSIONS
The maximum number of dimensions in an array: 255. One of the limitations of the Java Virtual Machine.
-
-