Uses of Class
org.aspectj.apache.bcel.classfile.ConstantPool
Packages that use ConstantPool
Package
Description
-
Uses of ConstantPool in org.aspectj.apache.bcel.classfile
Fields in org.aspectj.apache.bcel.classfile declared as ConstantPoolModifier and TypeFieldDescriptionprotected ConstantPoolAttribute.cpoolprotected ConstantPoolFieldOrMethod.cpoolMethods in org.aspectj.apache.bcel.classfile that return ConstantPoolModifier and TypeMethodDescriptionConstantPool.copy()Attribute.getConstantPool()FieldOrMethod.getConstantPool()JavaClass.getConstantPool()LocalVariable.getConstantPool()StackMapEntry.getConstantPool()StackMapType.getConstantPool()ConstantPool.getFinalConstantPool()Methods in org.aspectj.apache.bcel.classfile with parameters of type ConstantPoolModifier and TypeMethodDescriptionintConstantPool.addConstant(Constant c, ConstantPool cp)static StringUtility.codeToString(byte[] code, ConstantPool constant_pool, int index, int length)Disassemble a stream of byte codes and return the string representation.static StringUtility.codeToString(byte[] code, ConstantPool constant_pool, int index, int length, boolean verbose)Disassemble a byte array of JVM byte codes starting from code line 'index' and return the disassembled string representation.static StringUtility.codeToString(ByteSequence bytes, ConstantPool constant_pool)static StringUtility.codeToString(ByteSequence bytes, ConstantPool constant_pool, boolean verbose)Disassemble a stream of byte codes and return the string representation.AnnotationDefault.copy(ConstantPool constant_pool)EnclosingMethod.copy(ConstantPool constant_pool)static Collection<RuntimeAnnos>Utility.getAnnotationAttributes(ConstantPool cp, List<AnnotationGen> annotations)Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.ConstantCP.getClass(ConstantPool cp)ConstantClass.getClassname(ConstantPool cpool)ConstantObject.getConstantValue(ConstantPool cp)ConstantModule.getModuleName(ConstantPool cpool)ConstantNameAndType.getName(ConstantPool cp)ConstantPackage.getPackageName(ConstantPool cpool)static Attribute[]Utility.getParameterAnnotationAttributes(ConstantPool cp, List<AnnotationGen>[] vec)Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotationsConstantNameAndType.getSignature(ConstantPool cp)ConstantString.getString(ConstantPool cpool)static AttributeAttribute.readAttribute(DataInputStream file, ConstantPool cpool)static Attribute[]AttributeUtils.readAttributes(DataInputStream dataInputstream, ConstantPool cpool)voidJavaClass.setConstantPool(ConstantPool constant_pool)voidLocalVariable.setConstantPool(ConstantPool constant_pool)voidStackMapEntry.setConstantPool(ConstantPool constant_pool)voidStackMapType.setConstantPool(ConstantPool constant_pool)CodeException.toString(ConstantPool cp)CodeException.toString(ConstantPool cp, boolean verbose)InnerClass.toString(ConstantPool constant_pool)voidClassVisitor.visitConstantPool(ConstantPool obj)Constructors in org.aspectj.apache.bcel.classfile with parameters of type ConstantPoolModifierConstructorDescriptionAnnotationDefault(int nameIndex, int len, DataInputStream dis, ConstantPool cpool)protectedAttribute(byte tag, int nameIndex, int length, ConstantPool cpool)BootstrapMethods(int nameIndex, int length, BootstrapMethods.BootstrapMethod[] lineNumberTable, ConstantPool constantPool)Code(int name_index, int length, int max_stack, int max_locals, byte[] code, CodeException[] exception_table, Attribute[] attributes, ConstantPool constant_pool)ConstantValue(int name_index, int length, int constantvalue_index, ConstantPool constant_pool)Deprecated(int name_index, int length, byte[] bytes, ConstantPool constant_pool)EnclosingMethod(int nameIndex, int len, DataInputStream dis, ConstantPool cpool)ExceptionTable(int name_index, int length, int[] exception_index_table, ConstantPool constant_pool)Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)protectedFieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)protectedFieldOrMethod(DataInputStream file, ConstantPool cpool)InnerClasses(int name_index, int length, InnerClass[] inner_classes, ConstantPool constant_pool)JavaClass(int classnameIndex, int superclassnameIndex, String filename, int major, int minor, int access_flags, ConstantPool cpool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes)LineNumberTable(int nameIndex, int length, LineNumber[] lineNumberTable, ConstantPool constantPool)LocalVariable(int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool)LocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)LocalVariableTypeTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)Method(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)MethodParameters(int index, int length, DataInputStream dis, ConstantPool cpool)Module(int nameIndex, int length, byte[] data, ConstantPool cp)ModuleMainClass(int nameIndex, int length, int mainClassIndex, ConstantPool cp)ModulePackages(int nameIndex, int length, int[] packageIndices, ConstantPool cp)NestHost(int nameIndex, int length, int hostClassIndex, ConstantPool cp)NestMembers(int nameIndex, int length, int[] classes, ConstantPool cp)Signature(int name_index, int length, int signature_index, ConstantPool constant_pool)SourceFile(int name_index, int length, int sourcefile_index, ConstantPool constant_pool)StackMap(int name_index, int length, StackMapEntry[] map, ConstantPool constant_pool)StackMapEntry(int byte_code_offset, int number_of_locals, StackMapType[] types_of_locals, int number_of_stack_items, StackMapType[] types_of_stack_items, ConstantPool constant_pool)StackMapType(byte type, int index, ConstantPool constant_pool)Synthetic(int name_index, int length, byte[] bytes, ConstantPool constant_pool)Unknown(int name_index, int length, byte[] bytes, ConstantPool constant_pool)Create a non-standard attribute. -
Uses of ConstantPool in org.aspectj.apache.bcel.classfile.annotation
Fields in org.aspectj.apache.bcel.classfile.annotation declared as ConstantPoolMethods in org.aspectj.apache.bcel.classfile.annotation that return ConstantPoolMethods in org.aspectj.apache.bcel.classfile.annotation with parameters of type ConstantPoolModifier and TypeMethodDescriptionstatic ElementValueElementValue.copy(ElementValue value, ConstantPool cpool, boolean copyPoolEntries)Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.RuntimeInvisAnnos.copy(ConstantPool constant_pool)RuntimeInvisParamAnnos.copy(ConstantPool constant_pool)RuntimeParamAnnos.copy(ConstantPool constant_pool)RuntimeTypeAnnos.copy(ConstantPool constant_pool)RuntimeVisAnnos.copy(ConstantPool constant_pool)RuntimeVisParamAnnos.copy(ConstantPool constant_pool)static AnnotationGenAnnotationGen.read(DataInputStream dis, ConstantPool cpool, boolean b)static TypeAnnotationGenTypeAnnotationGen.read(DataInputStream dis, ConstantPool cpool, boolean isVisible)protected voidRuntimeAnnos.readAnnotations(DataInputStream dis, ConstantPool cpool)static ElementValueElementValue.readElementValue(DataInputStream dis, ConstantPool cpGen)protected voidRuntimeParamAnnos.readParameterAnnotations(DataInputStream dis, ConstantPool cpool)protected voidRuntimeTypeAnnos.readTypeAnnotations(DataInputStream dis, ConstantPool cpool)Constructors in org.aspectj.apache.bcel.classfile.annotation with parameters of type ConstantPoolModifierConstructorDescriptionAnnotationElementValue(int type, AnnotationGen annotation, ConstantPool cpool)AnnotationElementValue(AnnotationElementValue value, ConstantPool cpool, boolean copyPoolEntries)AnnotationElementValue(AnnotationGen a, ConstantPool cpool)AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)Retrieve an immutable version of this AnnotationGenArrayElementValue(int type, ElementValue[] datums, ConstantPool cpool)ArrayElementValue(ArrayElementValue value, ConstantPool cpool, boolean copyPoolEntries)protectedClassElementValue(int typeIdx, ConstantPool cpool)ClassElementValue(ClassElementValue value, ConstantPool cpool, boolean copyPoolEntries)Return immutable variant of this ClassElementValueGenClassElementValue(ObjectType t, ConstantPool cpool)protectedElementValue(int type, ConstantPool cpool)protectedEnumElementValue(int typeIdx, int valueIdx, ConstantPool cpool)This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx.EnumElementValue(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries)EnumElementValue(ObjectType t, String value, ConstantPool cpool)protectedNameValuePair(int idx, ElementValue value, ConstantPool cpool)NameValuePair(String name, ElementValue value, ConstantPool cpool)NameValuePair(NameValuePair pair, ConstantPool cpool, boolean copyPoolEntries)RuntimeAnnos(byte attrid, boolean visible, int nameIdx, int len, byte[] data, ConstantPool cpool)RuntimeAnnos(byte attrid, boolean visible, int nameIdx, int len, ConstantPool cpool)RuntimeInvisAnnos(int nameIndex, int len, byte[] rvaData, ConstantPool cpool)RuntimeInvisAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeInvisAnnos(int nameIdx, int len, ConstantPool cpool)RuntimeInvisParamAnnos(int nameIndex, int len, byte[] rvaData, ConstantPool cpool)RuntimeInvisParamAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeInvisParamAnnos(int nameIdx, int len, ConstantPool cpool)RuntimeInvisTypeAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeInvisTypeAnnos(int nameIdx, int len, ConstantPool cpool)RuntimeParamAnnos(byte attrid, boolean visible, int nameIdx, int len, byte[] data, ConstantPool cpool)RuntimeParamAnnos(byte attrid, boolean visible, int nameIdx, int len, ConstantPool cpool)RuntimeTypeAnnos(byte attrid, boolean visible, int nameIdx, int len, ConstantPool cpool)RuntimeVisAnnos(int nameIndex, int len, byte[] rvaData, ConstantPool cpool)RuntimeVisAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeVisAnnos(int nameIdx, int len, ConstantPool cpool)RuntimeVisParamAnnos(int nameIndex, int len, byte[] rvaData, ConstantPool cpool)RuntimeVisParamAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeVisParamAnnos(int nameIdx, int len, ConstantPool cpool)RuntimeVisTypeAnnos(int nameIdx, int len, DataInputStream dis, ConstantPool cpool)RuntimeVisTypeAnnos(int nameIdx, int len, ConstantPool cpool)protectedSimpleElementValue(int type, int idx, ConstantPool cpGen)Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index is correct.SimpleElementValue(int type, ConstantPool cpGen, boolean value)SimpleElementValue(int type, ConstantPool cpGen, byte value)SimpleElementValue(int type, ConstantPool cpGen, char value)SimpleElementValue(int type, ConstantPool cpGen, double value)SimpleElementValue(int type, ConstantPool cpGen, float value)SimpleElementValue(int type, ConstantPool cpGen, int value)SimpleElementValue(int type, ConstantPool cpGen, long value)SimpleElementValue(int type, ConstantPool cpGen, short value)SimpleElementValue(int type, ConstantPool cpGen, String value)SimpleElementValue(SimpleElementValue value, ConstantPool cpool, boolean copyPoolEntries)The boolean controls whether we copy info from the 'old' constant pool to the 'new'. -
Uses of ConstantPool in org.aspectj.apache.bcel.generic
Fields in org.aspectj.apache.bcel.generic declared as ConstantPoolModifier and TypeFieldDescriptionprotected ConstantPoolFieldGenOrMethodGen.cpprotected ConstantPoolInstructionFactory.cpMethods in org.aspectj.apache.bcel.generic that return ConstantPoolModifier and TypeMethodDescriptionClassGen.getConstantPool()FieldGenOrMethodGen.getConstantPool()InstructionFactory.getConstantPool()Methods in org.aspectj.apache.bcel.generic with parameters of type ConstantPoolModifier and TypeMethodDescriptionprotected voidFieldGenOrMethodGen.addAnnotationsAsAttribute(ConstantPool cp)voidMethodGen.addParameterAnnotationsAsAttribute(ConstantPool cp)intFieldInstruction.consumeStack(ConstantPool cpg)intInstruction.consumeStack(ConstantPool cpg)intInvokeInstruction.consumeStack(ConstantPool cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.intINVOKEINTERFACE.consumeStack(ConstantPool cpg)intMULTIANEWARRAY.consumeStack(ConstantPool cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.Type[]InvokeDynamic.getArgumentTypes(ConstantPool cp)Type[]InvokeInstruction.getArgumentTypes(ConstantPool cpg)FieldOrMethod.getClassName(ConstantPool cp)InvokeDynamic.getClassName(ConstantPool cp)FieldOrMethod.getClassType(ConstantPool cpg)CodeExceptionGen.getCodeException(ConstantPool 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.FieldInstruction.getFieldName(ConstantPool cpg)protected intFieldInstruction.getFieldSize(ConstantPool cpg)FieldInstruction.getFieldType(ConstantPool cpg)MethodGen.getLineNumberTable(ConstantPool cp)FieldOrMethod.getLoadClassType(ConstantPool cpg)Instruction.getLoadClassType(ConstantPool cpg)MULTIANEWARRAY.getLoadClassType(ConstantPool cpg)LocalVariableGen.getLocalVariable(ConstantPool cp)Get LocalVariable object.MethodGen.getLocalVariableTable(ConstantPool cp)static intMethodGen.getMaxStack(ConstantPool cp, InstructionList il, CodeExceptionGen[] et)Computes stack usage of an instruction list by performing control flow analysis.InvokeInstruction.getMethodName(ConstantPool cpg)FieldOrMethod.getName(ConstantPool cp)InvokeDynamic.getName(ConstantPool cp)InvokeDynamic.getReturnType(ConstantPool cp)InvokeInstruction.getReturnType(ConstantPool cpg)FieldOrMethod.getSignature(ConstantPool cp)InvokeDynamic.getSignature(ConstantPool cp)FieldInstruction.getType(ConstantPool cpg)Instruction.getType(ConstantPool cp)InstructionBranch.getType(ConstantPool cp)InstructionCP.getType(ConstantPool cpg)InvokeInstruction.getType(ConstantPool cpg)RET.getType(ConstantPool cp)Instruction.getValue(ConstantPool cpg)InstructionCP.getValue(ConstantPool constantPool)intFieldInstruction.produceStack(ConstantPool cpg)intInstruction.produceStack(ConstantPool cpg)intInvokeInstruction.produceStack(ConstantPool cpg)Also works for instructions whose stack effect depends on the constant pool entry they reference.static InstructionInstructionFactory.PUSH(ConstantPool cp, boolean value)static InstructionInstructionFactory.PUSH(ConstantPool cp, double value)static InstructionInstructionFactory.PUSH(ConstantPool cp, float value)static InstructionInstructionFactory.PUSH(ConstantPool cp, int value)Returns the right instruction for putting whatever you want onto the stackstatic InstructionInstructionFactory.PUSH(ConstantPool cp, long value)static InstructionInstructionFactory.PUSH(ConstantPool cp, Boolean value)static InstructionInstructionFactory.PUSH(ConstantPool cp, Character value)static InstructionInstructionFactory.PUSH(ConstantPool cp, Number value)static InstructionInstructionFactory.PUSH(ConstantPool cp, String value)static InstructionInstructionFactory.PUSH(ConstantPool cp, ObjectType t)InstructionFactory.PUSHCLASS(ConstantPool cp, String className)Return a list that will load the Class object - on 1.5 or later use the class variant of ldc, whilst on earlier JVMs use the regular Class.forName.voidInstructionList.replaceConstantPool(ConstantPool old_cp, ConstantPool new_cp)Replace all references to the old constant pool with references to the new constant poolvoidClassGen.setConstantPool(ConstantPool constant_pool)voidFieldGenOrMethodGen.setConstantPool(ConstantPool cp)voidInstructionFactory.setConstantPool(ConstantPool c)FieldInstruction.toString(ConstantPool cp)InstructionCP.toString(ConstantPool cp)InvokeDynamic.toString(ConstantPool cp)InvokeInstruction.toString(ConstantPool cp)INVOKEINTERFACE.toString(ConstantPool cp)MULTIANEWARRAY.toString(ConstantPool cp)Constructors in org.aspectj.apache.bcel.generic with parameters of type ConstantPoolModifierConstructorDescriptionClassGen(String classname, String superclassname, String filename, int modifiers, String[] interfacenames, ConstantPool cpool)FieldGen(int modifiers, Type type, String name, ConstantPool cpool)Declare a field.FieldGen(Field field, ConstantPool cp)Instantiate from existing field.InstructionFactory(ClassGen cg, ConstantPool cp)MethodGen(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPool cp)Declare method.MethodGen(Method m, String class_name, ConstantPool cp)Instantiate from existing method.MethodGen(Method m, String class_name, ConstantPool cp, boolean useTags) -
Uses of ConstantPool in org.aspectj.weaver.bcel
Methods in org.aspectj.weaver.bcel that return ConstantPoolMethods in org.aspectj.weaver.bcel with parameters of type ConstantPoolModifier and TypeMethodDescriptionstatic AttributeUtility.bcelAttribute(AjAttribute a, ConstantPool pool)Constructors in org.aspectj.weaver.bcel with parameters of type ConstantPool