Uses of Class
org.apache.bcel.classfile.Constant
- 
Packages that use Constant Package Description org.apache.bcel.classfile This package contains the classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic This package contains the "generic" part of the Byte Code Engineering Library, i.e., classes to dynamically modify class objects and byte code instructions. - 
- 
Uses of Constant in org.apache.bcel.classfile
Subclasses of Constant in org.apache.bcel.classfile Modifier and Type Class Description classConstantClassThis class is derived from the abstractConstantand represents a reference to a (external) class.classConstantCPAbstract super class for Fieldref, Methodref, InterfaceMethodref and InvokeDynamic constants.classConstantDoubleThis class is derived from the abstractConstantand represents a reference to a Double object.classConstantDynamicThis class is derived from the abstractConstantand represents a reference to a dynamically computed constant.classConstantFieldrefThis class represents a constant pool reference to a field.classConstantFloatThis class is derived from the abstractConstantand represents a reference to a float object.classConstantIntegerThis class is derived from the abstractConstantand represents a reference to an int object.classConstantInterfaceMethodrefThis class represents a constant pool reference to an interface method.classConstantInvokeDynamicThis class is derived from the abstractConstantand represents a reference to a invoke dynamic.classConstantLongThis class is derived from the abstractConstantand represents a reference to a long object.classConstantMethodHandleThis class is derived from the abstractConstantand represents a reference to a method handle.classConstantMethodrefThis class represents a constant pool reference to a method.classConstantMethodTypeThis class is derived from the abstractConstantand represents a reference to a method type.classConstantModuleThis class is derived from the abstractConstantand represents a reference to a module.classConstantNameAndTypeThis class is derived from the abstractConstantand represents a reference to the name and signature of a field or method.classConstantPackageThis class is derived from the abstractConstantand represents a reference to a package.classConstantStringThis class is derived from the abstractConstantand represents a reference to a String object.classConstantUtf8Extends the abstractConstantto represent a reference to a UTF-8 encoded string.Methods in org.apache.bcel.classfile that return Constant Modifier and Type Method Description ConstantConstant. copy()ConstantConstantPool. getConstant(int index)Gets constant from constant pool.ConstantConstantPool. getConstant(int index, byte tag)Gets constant from constant pool and check whether it has the expected type.Constant[]ConstantPool. getConstantPool()static ConstantConstant. 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 with parameters of type Constant Modifier and Type Method Description java.lang.StringConstantPool. constantToString(Constant c)Resolves constant to a string representation.voidConstantPool. setConstant(int index, Constant constant)voidConstantPool. setConstantPool(Constant[] constantPool)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. constantsDeprecated.(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 ConstantConstantPoolGen. getConstant(int i)Methods in org.apache.bcel.generic with parameters of type Constant Modifier and Type Method Description intConstantPoolGen. addConstant(Constant c, ConstantPoolGen cp)Import constant from another ConstantPool and return new index.voidConstantPoolGen. setConstant(int i, Constant c)Use with care!Constructors in org.apache.bcel.generic with parameters of type Constant Constructor Description ConstantPoolGen(Constant[] cs)Initialize with given array of constants. 
 -