Uses of Class
org.apache.bcel.classfile.Constant
Package
Description
Classes that describe the structure of a Java class file and a class file parser.
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects
and byte code instructions.
-
Uses of Constant in org.apache.bcel.classfile
Modifier and TypeClassDescriptionfinal class
This class is derived from the abstractConstant
and represents a reference to a (external) class.class
Abstract super class for Fieldref, Methodref, InterfaceMethodref and InvokeDynamic constants.final class
This class is derived from the abstractConstant
and represents a reference to a Double object.final class
This class is derived from the abstractConstant
and represents a reference to a dynamically computed constant.final class
This class represents a constant pool reference to a field.final class
This class is derived from the abstractConstant
and represents a reference to a float object.final class
This class is derived from the abstractConstant
and represents a reference to an int object.final class
This class represents a constant pool reference to an interface method.final class
This class is derived from the abstractConstant
and represents a reference to a invoke dynamic.final class
This class is derived from the abstractConstant
and represents a reference to a long object.final class
This class is derived from the abstractConstant
and represents a reference to a method handle.final class
This class represents a constant pool reference to a method.final class
This class is derived from the abstractConstant
and represents a reference to a method type.final class
This class is derived from the abstractConstant
and represents a reference to a module.final class
This class is derived from the abstractConstant
and represents a reference to the name and signature of a field or method.final class
This class is derived from the abstractConstant
and represents a reference to a package.final class
This class is derived from the abstractConstant
and represents a reference to a String object.final class
Extends the abstractConstant
to represent a reference to a UTF-8 encoded string.Modifier and TypeMethodDescription<T extends Constant>
TConstantPool.getConstant
(int index) Gets constant from constant pool.<T extends Constant>
TConstantPool.getConstant
(int index, byte tag) Gets constant from constant pool and check whether it has the expected type.<T extends Constant>
TConstantPool.getConstant
(int index, byte tag, Class<T> castTo) Gets constant from constant pool and check whether it has the expected type.<T extends Constant>
TConstantPool.getConstant
(int index, Class<T> castTo) Gets constant from constant pool.Modifier and TypeMethodDescriptionConstant.copy()
Constant[]
ConstantPool.getConstantPool()
static Constant
Constant.readConstant
(DataInput dataInput) Reads one constant from the given input, the type depends on a tag byte.Modifier and TypeMethodDescriptionstatic BCELComparator
<Constant> Constant.getComparator()
ConstantPool.iterator()
Modifier and TypeMethodDescriptionConstantPool.constantToString
(Constant c) Resolves constant to a string representation.void
ConstantPool.setConstant
(int index, Constant constant) void
ConstantPool.setConstantPool
(Constant[] constantPool) Modifier and TypeMethodDescriptionstatic void
Constant.setComparator
(BCELComparator<Constant> comparator) -
Uses of Constant in org.apache.bcel.generic
Modifier and TypeFieldDescriptionprotected Constant[]
ConstantPoolGen.constants
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterModifier and TypeMethodDescriptionint
ConstantPoolGen.addConstant
(Constant constant, ConstantPoolGen cpGen) Adds a constant from another ConstantPool and returns the new index.void
ConstantPoolGen.setConstant
(int i, Constant c) Use with care!ModifierConstructorDescriptionConstantPoolGen
(Constant[] cs) Constructs a new instance with the given array of constants.