Uses of Class
org.apache.bcel.classfile.Constant
-
Packages that use Constant Package Description org.apache.bcel.classfile Classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.org.apache.bcel.util Utility classes for the Apache Byte Code Engineering Library (BCEL), namely: Collection classes for JavaClass objects A converter for class files to HTML A tool to find instructions patterns via regular expressions A class to find classes as defined in the CLASSPATH A class loader that allows to create classes at run time -
-
Uses of Constant in org.apache.bcel.classfile
Subclasses of Constant in org.apache.bcel.classfile Modifier and Type Class Description class
ConstantClass
This class is derived from the abstractConstant
and represents a reference to a (external) class.class
ConstantCP
Abstract super class for Fieldref, Methodref, InterfaceMethodref and InvokeDynamic constants.class
ConstantDouble
This class is derived from the abstractConstant
and represents a reference to a Double object.class
ConstantDynamic
This class is derived from the abstractConstant
and represents a reference to a dynamically computed constant.class
ConstantFieldref
This class represents a constant pool reference to a field.class
ConstantFloat
This class is derived from the abstractConstant
and represents a reference to a float object.class
ConstantInteger
This class is derived from the abstractConstant
and represents a reference to an int object.class
ConstantInterfaceMethodref
This class represents a constant pool reference to an interface method.class
ConstantInvokeDynamic
This class is derived from the abstractConstant
and represents a reference to a invoke dynamic.class
ConstantLong
This class is derived from the abstractConstant
and represents a reference to a long object.class
ConstantMethodHandle
This class is derived from the abstractConstant
and represents a reference to a method handle.class
ConstantMethodref
This class represents a constant pool reference to a method.class
ConstantMethodType
This class is derived from the abstractConstant
and represents a reference to a method type.class
ConstantModule
This class is derived from the abstractConstant
and represents a reference to a module.class
ConstantNameAndType
This class is derived from the abstractConstant
and represents a reference to the name and signature of a field or method.class
ConstantPackage
This class is derived from the abstractConstant
and represents a reference to a package.class
ConstantString
This class is derived from the abstractConstant
and represents a reference to a String object.class
ConstantUtf8
Extends the abstractConstant
to represent a reference to a UTF-8 encoded string.Fields in org.apache.bcel.classfile declared as Constant Modifier and Type Field Description private Constant[]
ConstantPool. constantPool
Fields in org.apache.bcel.classfile with type parameters of type Constant Modifier and Type Field Description private static BCELComparator<Constant>
Constant. bcelComparator
Methods in org.apache.bcel.classfile with type parameters of type Constant Modifier and Type Method Description <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, java.lang.Class<T> castTo)
Gets constant from constant pool and check whether it has the expected type.<T extends Constant>
TConstantPool. getConstant(int index, java.lang.Class<T> castTo)
Gets constant from constant pool.Methods in org.apache.bcel.classfile that return Constant Modifier and Type Method Description Constant
Constant. copy()
Constant[]
ConstantPool. getConstantPool()
static Constant
Constant. readConstant(java.io.DataInput dataInput)
Reads one constant from the given input, the type depends on a tag byte.Methods in org.apache.bcel.classfile that return types with arguments of type Constant Modifier and Type Method Description static BCELComparator<Constant>
Constant. getComparator()
java.util.Iterator<Constant>
ConstantPool. iterator()
Methods in org.apache.bcel.classfile with parameters of type Constant Modifier and Type Method Description java.lang.String
ConstantPool. constantToString(Constant c)
Resolves constant to a string representation.void
ConstantPool. setConstant(int index, Constant constant)
void
ConstantPool. setConstantPool(Constant[] constantPool)
Method parameters in org.apache.bcel.classfile with type arguments of type Constant Modifier and Type Method Description static void
Constant. setComparator(BCELComparator<Constant> comparator)
Constructors in org.apache.bcel.classfile with parameters of type Constant Constructor Description ConstantPool(Constant[] constantPool)
-
Uses of Constant in org.apache.bcel.generic
Fields in org.apache.bcel.generic declared as Constant Modifier and Type Field Description protected Constant[]
ConstantPoolGen. constants
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterMethods in org.apache.bcel.generic that return Constant Modifier and Type Method Description Constant
ConstantPoolGen. getConstant(int i)
Methods in org.apache.bcel.generic with parameters of type Constant Modifier and Type Method Description int
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!Constructors in org.apache.bcel.generic with parameters of type Constant Constructor Description ConstantPoolGen(Constant[] cs)
Constructs a new instance with the given array of constants. -
Uses of Constant in org.apache.bcel.util
Fields in org.apache.bcel.util declared as Constant Modifier and Type Field Description private Constant[]
ConstantHTML. constants
-