Uses of Class
org.apache.bcel.generic.ConstantPoolGen
-
Packages that use ConstantPoolGen Package Description 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.org.apache.bcel.util This package contains utility classes for the Byte Code Engineering Library, namely:org.apache.bcel.verifier.statics Provides PassVerifier classes used internally by JustIce.org.apache.bcel.verifier.structurals Provides a PassVerifier class mostly used internally by JustIce, yielding a control flow graph for public use as a nice side effect. -
-
Uses of ConstantPoolGen in org.apache.bcel.generic
Fields in org.apache.bcel.generic declared as ConstantPoolGen Modifier and Type Field Description private ConstantPoolGenClassGen. cpprotected ConstantPoolGenFieldGenOrMethodGen. cpDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected ConstantPoolGenInstructionFactory. cpDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected ConstantPoolGenElementValueGen. cpGenDeprecated.(since 6.0) will be made private and final; do not access directly, use getterprivate ConstantPoolGenAnnotationEntryGen. cpoolprivate ConstantPoolGenElementValuePairGen. cpoolMethods in org.apache.bcel.generic that return ConstantPoolGen Modifier and Type Method Description ConstantPoolGenClassGen. getConstantPool()protected ConstantPoolGenElementValueGen. getConstantPool()ConstantPoolGenFieldGenOrMethodGen. getConstantPool()ConstantPoolGenInstructionFactory. getConstantPool()Methods in org.apache.bcel.generic with parameters of type ConstantPoolGen Modifier and Type Method Description private voidFieldGen. addAnnotationsAsAttribute(ConstantPoolGen cp)voidMethodGen. addAnnotationsAsAttribute(ConstantPoolGen cp)intConstantPoolGen. addConstant(Constant c, ConstantPoolGen cp)Import constant from another ConstantPool and return new index.voidMethodGen. addParameterAnnotationsAsAttribute(ConstantPoolGen cp)intInstruction. consumeStack(ConstantPoolGen cpg)This method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.intInvokeInstruction. consumeStack(ConstantPoolGen cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.intINVOKEINTERFACE. consumeStack(ConstantPoolGen cpg)intMULTIANEWARRAY. consumeStack(ConstantPoolGen cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.intPUTFIELD. consumeStack(ConstantPoolGen cpg)intPUTSTATIC. consumeStack(ConstantPoolGen cpg)intStackConsumer. consumeStack(ConstantPoolGen cpg)static ElementValueGenElementValueGen. copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.FieldGenFieldGen. copy(ConstantPoolGen cp)MethodGenMethodGen. copy(java.lang.String class_name, ConstantPoolGen cp)private java.util.List<ElementValuePairGen>AnnotationEntryGen. copyValues(ElementValuePair[] in, ConstantPoolGen cpool, boolean copyPoolEntries)(package private) static Attribute[]AnnotationEntryGen. getAnnotationAttributes(ConstantPoolGen cp, AnnotationEntryGen[] annotationEntryGens)Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.Type[]InvokeInstruction. getArgumentTypes(ConstantPoolGen cpg)java.lang.StringFieldOrMethod. getClassName(ConstantPoolGen cpg)Deprecated.If the instruction references an array class, this method will return "java.lang.Object".java.lang.StringINVOKEDYNAMIC. getClassName(ConstantPoolGen cpg)Override the parent method because our classname is held elsewhere.java.lang.StringInvokeInstruction. getClassName(ConstantPoolGen cpg)This overrides the deprecated version as we know here that the referenced class may legally be an array.ObjectTypeFieldOrMethod. getClassType(ConstantPoolGen cpg)Deprecated.If the instruction references an array class, the ObjectType returned will be invalid.CodeExceptionCodeExceptionGen. getCodeException(ConstantPoolGen cp)Get CodeException object.
This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods has been called for the instruction list.private ExceptionTableMethodGen. getExceptionTable(ConstantPoolGen cp)java.lang.StringFieldInstruction. getFieldName(ConstantPoolGen cpg)protected intFieldInstruction. getFieldSize(ConstantPoolGen cpg)TypeFieldInstruction. getFieldType(ConstantPoolGen cpg)LineNumberTableMethodGen. getLineNumberTable(ConstantPoolGen cp)ObjectTypeANEWARRAY. getLoadClassType(ConstantPoolGen cpg)ObjectTypeCHECKCAST. getLoadClassType(ConstantPoolGen cpg)ObjectTypeFieldOrMethod. getLoadClassType(ConstantPoolGen cpg)Gets the ObjectType of the method return or field.ObjectTypeINSTANCEOF. getLoadClassType(ConstantPoolGen cpg)ObjectTypeLoadClass. getLoadClassType(ConstantPoolGen cpg)Returns the ObjectType of the referenced class or interface that may be loaded and resolved.ObjectTypeMULTIANEWARRAY. getLoadClassType(ConstantPoolGen cpg)ObjectTypeNEW. getLoadClassType(ConstantPoolGen cpg)LocalVariableLocalVariableGen. getLocalVariable(ConstantPoolGen cp)Gets LocalVariable object.LocalVariableTableMethodGen. getLocalVariableTable(ConstantPoolGen cp)static intMethodGen. getMaxStack(ConstantPoolGen cp, InstructionList il, CodeExceptionGen[] et)Computes stack usage of an instruction list by performing control flow analysis.java.lang.StringInvokeInstruction. getMethodName(ConstantPoolGen cpg)java.lang.StringFieldOrMethod. getName(ConstantPoolGen cpg)java.lang.StringNameSignatureInstruction. getName(ConstantPoolGen cpg)ConstantNameAndTypeNameSignatureInstruction. getNameAndType(ConstantPoolGen cpg)(package private) static Attribute[]AnnotationEntryGen. getParameterAnnotationAttributes(ConstantPoolGen cp, java.util.List<AnnotationEntryGen>[] vec)Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotationsReferenceTypeFieldOrMethod. getReferenceType(ConstantPoolGen cpg)Gets the reference type representing the class, interface, or array class referenced by the instruction.ReferenceTypeINVOKEDYNAMIC. getReferenceType(ConstantPoolGen cpg)Since InvokeDynamic doesn't refer to a reference type, just return java.lang.Object, as that is the only type we can say for sure the reference will be.TypeInvokeInstruction. getReturnType(ConstantPoolGen cpg)java.lang.StringFieldOrMethod. getSignature(ConstantPoolGen cpg)java.lang.StringNameSignatureInstruction. getSignature(ConstantPoolGen cpg)TypeACONST_NULL. getType(ConstantPoolGen cp)TypeArithmeticInstruction. getType(ConstantPoolGen cp)TypeArrayInstruction. getType(ConstantPoolGen cp)TypeBIPUSH. getType(ConstantPoolGen cp)TypeConversionInstruction. getType(ConstantPoolGen cp)TypeCPInstruction. getType(ConstantPoolGen cpg)TypeDCMPG. getType(ConstantPoolGen cp)TypeDCMPL. getType(ConstantPoolGen cp)TypeDCONST. getType(ConstantPoolGen cp)TypeFCMPG. getType(ConstantPoolGen cp)TypeFCMPL. getType(ConstantPoolGen cp)TypeFCONST. getType(ConstantPoolGen cp)TypeFieldInstruction. getType(ConstantPoolGen cpg)TypeICONST. getType(ConstantPoolGen cp)TypeIINC. getType(ConstantPoolGen cp)TypeInvokeInstruction. getType(ConstantPoolGen cpg)TypeJsrInstruction. getType(ConstantPoolGen cp)TypeLCMP. getType(ConstantPoolGen cp)TypeLCONST. getType(ConstantPoolGen cp)TypeLDC. getType(ConstantPoolGen cpg)TypeLDC2_W. getType(ConstantPoolGen cpg)TypeLoadClass. getType(ConstantPoolGen cpg)Returns the type associated with this instruction.TypeLocalVariableInstruction. getType(ConstantPoolGen cp)Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned.TypeRET. getType(ConstantPoolGen cp)TypeReturnInstruction. getType(ConstantPoolGen cp)TypeSIPUSH. getType(ConstantPoolGen cp)TypeStackInstruction. getType(ConstantPoolGen cp)TypeTypedInstruction. getType(ConstantPoolGen cpg)java.lang.ObjectLDC. getValue(ConstantPoolGen cpg)java.lang.NumberLDC2_W. getValue(ConstantPoolGen cpg)intGETFIELD. produceStack(ConstantPoolGen cpg)intGETSTATIC. produceStack(ConstantPoolGen cpg)intInstruction. produceStack(ConstantPoolGen cpg)This method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.intInvokeInstruction. produceStack(ConstantPoolGen cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.intStackProducer. produceStack(ConstantPoolGen cpg)static AnnotationEntryGenAnnotationEntryGen. read(java.io.DataInput dis, ConstantPoolGen cpool, boolean b)static ElementValueGenElementValueGen. readElementValue(java.io.DataInput dis, ConstantPoolGen cpGen)voidInstructionList. replaceConstantPool(ConstantPoolGen old_cp, ConstantPoolGen new_cp)Replace all references to the old constant pool with references to the new constant poolvoidClassGen. setConstantPool(ConstantPoolGen constant_pool)voidFieldGenOrMethodGen. setConstantPool(ConstantPoolGen cp)voidInstructionFactory. setConstantPool(ConstantPoolGen c)Constructors in org.apache.bcel.generic with parameters of type ConstantPoolGen Constructor Description AnnotationElementValueGen(int type, AnnotationEntryGen annotation, ConstantPoolGen cpool)AnnotationElementValueGen(AnnotationElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)AnnotationElementValueGen(AnnotationEntryGen a, ConstantPoolGen cpool)AnnotationEntryGen(AnnotationEntry a, ConstantPoolGen cpool, boolean copyPoolEntries)Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object.AnnotationEntryGen(ConstantPoolGen cpool)AnnotationEntryGen(ObjectType type, java.util.List<ElementValuePairGen> elements, boolean vis, ConstantPoolGen cpool)ArrayElementValueGen(int type, ElementValue[] datums, ConstantPoolGen cpool)ArrayElementValueGen(ArrayElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)ArrayElementValueGen(ConstantPoolGen cp)ClassElementValueGen(int typeIdx, ConstantPoolGen cpool)ClassElementValueGen(ClassElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)ClassElementValueGen(ObjectType t, ConstantPoolGen cpool)ClassGen(java.lang.String class_name, java.lang.String super_class_name, java.lang.String file_name, int access_flags, java.lang.String[] interfaces, ConstantPoolGen cp)Convenience constructor to set up some important values initially.ElementValueGen(int type, ConstantPoolGen cpGen)ElementValuePairGen(int idx, ElementValueGen value, ConstantPoolGen cpool)ElementValuePairGen(java.lang.String name, ElementValueGen value, ConstantPoolGen cpool)ElementValuePairGen(ElementValuePair nvp, ConstantPoolGen cpool, boolean copyPoolEntries)EnumElementValueGen(int typeIdx, int valueIdx, ConstantPoolGen cpool)This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx.EnumElementValueGen(EnumElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)EnumElementValueGen(ObjectType t, java.lang.String value, ConstantPoolGen cpool)FieldGen(int access_flags, Type type, java.lang.String name, ConstantPoolGen cp)Declare a field.FieldGen(Field field, ConstantPoolGen cp)Instantiate from existing field.InstructionFactory(ClassGen cg, ConstantPoolGen cp)InstructionFactory(ConstantPoolGen cp)Initialize just with ConstantPoolGen objectMethodGen(int access_flags, Type return_type, Type[] arg_types, java.lang.String[] arg_names, java.lang.String method_name, java.lang.String class_name, InstructionList il, ConstantPoolGen cp)Declare method.MethodGen(Method m, java.lang.String class_name, ConstantPoolGen cp)Instantiate from existing method.PUSH(ConstantPoolGen cp, boolean value)PUSH(ConstantPoolGen cp, double value)PUSH(ConstantPoolGen cp, float value)PUSH(ConstantPoolGen cp, int value)This constructor also applies for values of type short, char, bytePUSH(ConstantPoolGen cp, long value)PUSH(ConstantPoolGen cp, java.lang.Boolean value)PUSH(ConstantPoolGen cp, java.lang.Character value)creates a push object from a Character value.PUSH(ConstantPoolGen cp, java.lang.Number value)PUSH(ConstantPoolGen cp, java.lang.String value)PUSH(ConstantPoolGen cp, ObjectType value)SimpleElementValueGen(int type, int idx, ConstantPoolGen cpGen)Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct.SimpleElementValueGen(int type, ConstantPoolGen cpGen, boolean value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, byte value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, char value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, double value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, float value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, int value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, long value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, short value)SimpleElementValueGen(int type, ConstantPoolGen cpGen, java.lang.String value)SimpleElementValueGen(SimpleElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)The boolean controls whether we copy info from the 'old' constant pool to the 'new'. -
Uses of ConstantPoolGen in org.apache.bcel.util
Fields in org.apache.bcel.util declared as ConstantPoolGen Modifier and Type Field Description private ConstantPoolGenBCELFactory. _cpprivate ConstantPoolGenBCELifier. _cp -
Uses of ConstantPoolGen in org.apache.bcel.verifier.statics
Fields in org.apache.bcel.verifier.statics declared as ConstantPoolGen Modifier and Type Field Description private ConstantPoolGenPass3aVerifier.InstOperandConstraintVisitor. constantPoolGenThe ConstantPoolGen instance this Visitor operates on.Constructors in org.apache.bcel.verifier.statics with parameters of type ConstantPoolGen Constructor Description InstOperandConstraintVisitor(ConstantPoolGen constantPoolGen)The only Constructor. -
Uses of ConstantPoolGen in org.apache.bcel.verifier.structurals
Fields in org.apache.bcel.verifier.structurals declared as ConstantPoolGen Modifier and Type Field Description private ConstantPoolGenExecutionVisitor. cpgThe ConstantPoolGen we're working with.private ConstantPoolGenInstConstraintVisitor. cpgThe ConstantPoolGen we're working on.Methods in org.apache.bcel.verifier.structurals with parameters of type ConstantPoolGen Modifier and Type Method Description voidExecutionVisitor. setConstantPoolGen(ConstantPoolGen cpg)Sets the ConstantPoolGen needed for symbolic execution.voidInstConstraintVisitor. setConstantPoolGen(ConstantPoolGen cpg)Sets the ConstantPoolGen instance needed for constraint checking prior to execution.
-