Top Description Fields Constructors Methods
org.apache.tomcat.util.bcel

public final Class Const

extends Object
Class Inheritance

Constants for the project, mostly defined in the JVM specification.

Field Summary

Modifier and TypeField and Description
public static final short
ACC_ABSTRACT

One of the access flags for fields, methods, or classes.

public static final short
ACC_ANNOTATION

One of the access flags for fields, methods, or classes.

public static final short
ACC_FINAL

One of the access flags for fields, methods, or classes.

public static final short
ACC_INTERFACE

One of the access flags for fields, methods, or classes.

public static final byte
CONSTANT_Class

Marks a constant pool entry as a Class

public static final byte
CONSTANT_Double

Marks a constant pool entry as type Double.

public static final byte
CONSTANT_Dynamic

Marks a constant pool entry as dynamically computed.

public static final byte
CONSTANT_Fieldref

Marks a constant pool entry as a Field Reference.

public static final byte
CONSTANT_Float

Marks a constant pool entry as type Float.

public static final byte
CONSTANT_Integer

Marks a constant pool entry as type Integer.

public static final byte
CONSTANT_InterfaceMethodref

Marks a constant pool entry as an Interface Method Reference.

public static final byte
CONSTANT_InvokeDynamic

Marks a constant pool entry as an Invoke Dynamic

public static final byte
CONSTANT_Long

Marks a constant pool entry as type Long.

public static final byte
CONSTANT_MethodHandle

Marks a constant pool entry as a Method Handle.

public static final byte
CONSTANT_Methodref

Marks a constant pool entry as a Method Reference.

public static final byte
CONSTANT_MethodType

Marks a constant pool entry as a Method Type.

public static final byte
CONSTANT_Module

Marks a constant pool entry as a Module Reference.

public static final byte
CONSTANT_NameAndType

Marks a constant pool entry as a name and type.

private static final String[]
CONSTANT_NAMES

The names of the types of entries in a constant pool.

public static final byte
CONSTANT_Package

Marks a constant pool entry as a Package Reference.

public static final byte
CONSTANT_String

Marks a constant pool entry as type String

public static final byte
CONSTANT_Utf8

Marks a constant pool entry as type UTF-8.

public static final int
JVM_CLASSFILE_MAGIC

Java class file format Magic number (0xCAFEBABE)

public static final int
MAX_ARRAY_DIMENSIONS

The maximum number of dimensions in an array (255).

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the CONSTANT_NAMES entry at the given index
getConstantName
(final int
The index for which the constant name is required
index
)

Get the CONSTANT_NAMES entry at the given index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ACC_ABSTRACTback to summary
public static final short ACC_ABSTRACT

One of the access flags for fields, methods, or classes.

See Also
ACC_FINAL
ACC_ANNOTATIONback to summary
public static final short ACC_ANNOTATION

One of the access flags for fields, methods, or classes.

See Also
ACC_FINAL
ACC_FINALback to summary
public static final short ACC_FINAL

One 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).
ACC_INTERFACEback to summary
public static final short ACC_INTERFACE

One of the access flags for fields, methods, or classes.

See Also
ACC_FINAL
CONSTANT_Classback to summary
public static final byte CONSTANT_Class

Marks a constant pool entry as a Class

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Doubleback to summary
public static final byte CONSTANT_Double

Marks a constant pool entry as type Double.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Dynamicback to summary
public static final byte CONSTANT_Dynamic

Marks a constant pool entry as dynamically computed.

See Also
Change request for JEP 309
CONSTANT_Fieldrefback to summary
public static final byte CONSTANT_Fieldref

Marks a constant pool entry as a Field Reference.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Floatback to summary
public static final byte CONSTANT_Float

Marks a constant pool entry as type Float.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Integerback to summary
public static final byte CONSTANT_Integer

Marks a constant pool entry as type Integer.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_InterfaceMethodrefback to summary
public static final byte CONSTANT_InterfaceMethodref

Marks a constant pool entry as an Interface Method Reference.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_InvokeDynamicback to summary
public static final byte CONSTANT_InvokeDynamic

Marks a constant pool entry as an Invoke Dynamic

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Longback to summary
public static final byte CONSTANT_Long

Marks a constant pool entry as type Long.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_MethodHandleback to summary
public static final byte CONSTANT_MethodHandle

Marks a constant pool entry as a Method Handle.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Methodrefback to summary
public static final byte CONSTANT_Methodref

Marks a constant pool entry as a Method Reference.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_MethodTypeback to summary
public static final byte CONSTANT_MethodType

Marks a constant pool entry as a Method Type.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Moduleback to summary
public static final byte CONSTANT_Module

Marks a constant pool entry as a Module Reference.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_NameAndTypeback to summary
public static final byte CONSTANT_NameAndType

Marks a constant pool entry as a name and type.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_NAMESback to summary
private static final String[] CONSTANT_NAMES

The names of the types of entries in a constant pool. Use getConstantName instead

CONSTANT_Packageback to summary
public static final byte CONSTANT_Package

Marks a constant pool entry as a Package Reference.

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Stringback to summary
public static final byte CONSTANT_String

Marks a constant pool entry as type String

See Also
The Constant Pool in The Java Virtual Machine Specification
CONSTANT_Utf8back to summary
public static final byte CONSTANT_Utf8

Marks a constant pool entry as type UTF-8.

See Also
The Constant Pool in The Java Virtual Machine Specification
JVM_CLASSFILE_MAGICback to summary
public static final int JVM_CLASSFILE_MAGIC

Java class file format Magic number (0xCAFEBABE)

See Also
The ClassFile Structure in The Java Virtual Machine Specification
MAX_ARRAY_DIMENSIONSback to summary
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.

See Also
Field Descriptors in The Java Virtual Machine Specification

Constructor Detail

Constback to summary
public Const()

Method Detail

getConstantNameback to summary
public static String getConstantName(final int index)

Get the CONSTANT_NAMES entry at the given index.

Parameters
index:int

The index for which the constant name is required

Returns:String

the CONSTANT_NAMES entry at the given index