Uses of Class
javassist.bytecode.ConstPool
Packages that use ConstPool
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode Analysis API.
Bytecode-level Annotations API.
This package contains the classes for modifying a method body.
Dynamic proxy (similar to
Enhancer of cglib).-
Uses of ConstPool in javassist
Modifier and TypeMethodDescriptionprotected voidCodeConverter.doit(CtClass clazz, MethodInfo minfo, ConstPool cp) Performs code conversion.(package private) intCtField.CodeInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.DoubleInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.FloatInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.Initializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.IntInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.LongInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.PtreeInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.StringInitializer.getConstantValue(ConstPool cp, CtClass type) (package private) intCtField.CodeInitializer0.getConstantValue2(ConstPool cp, CtClass type, ASTree tree) private intCtBehavior.insertAfterAdvice(Bytecode code, Javac jv, String src, ConstPool cp, CtClass rtype, int varNo) -
Uses of ConstPool in javassist.bytecode
Fields in javassist.bytecode declared as ConstPoolModifier and TypeFieldDescriptionprotected ConstPoolAttributeInfo.constPool(package private) ConstPoolBytecode.constPool(package private) ConstPoolClassFile.constPoolprivate ConstPoolCodeAnalyzer.constPoolprivate ConstPoolExceptionTable.constPool(package private) ConstPoolFieldInfo.constPool(package private) ConstPoolMethodInfo.constPool(package private) ConstPoolAnnotationsAttribute.Renamer.cpool(package private) ConstPoolStackMap.Copier.destCp(package private) ConstPoolAnnotationsAttribute.Copier.destPoolprivate ConstPoolStackMapTable.Copier.destPool(package private) ConstPoolTypeAnnotationsAttribute.SubCopier.destPool(package private) ConstPoolAnnotationsAttribute.Parser.pool(package private) ConstPoolStackMap.Copier.srcCp(package private) ConstPoolAnnotationsAttribute.Copier.srcPoolprivate ConstPoolStackMapTable.Copier.srcPool(package private) ConstPoolTypeAnnotationsAttribute.SubCopier.srcPoolMethods in javassist.bytecode that return ConstPoolModifier and TypeMethodDescriptionprivate ConstPoolClassFile.compact0()AttributeInfo.getConstPool()Returns a constant pool table.Bytecode.getConstPool()Gets a constant pool table.ClassFile.getConstPool()Returns a constant pool table.FieldInfo.getConstPool()Returns the constant pool table used by thisfield_info.MethodInfo.getConstPool()Returns a constant pool table used by this method.Methods in javassist.bytecode with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate static String(package private) voidCopies all constant pool items to a given new constant pool and replaces the original items with the new ones.(package private) voidCopies all constant pool items to a given new constant pool and replaces the original items with the new ones.Copies this attribute and returns a new copy.Copies this attribute and returns a new copy.Makes a copy.Makes a copy.intMakes a copy.Makes a copy.abstract intintintCopies the n-th item in this ConstPool object into the destination ConstPool object.Makes a copy.intintMakes a copy.Makes a copy.Makes a copy of thisexception_table[].intMakes a copy.intintMakes a copy.Makes a copy.intintintMakes a copy.intintintMakes a copy.Makes a copy.intCopies this attribute and returns a new copy.Makes a copy.Makes a copy.Makes a copy.Makes a copy.intMakes a copy.Copies this attribute and returns a new copy.intprotected intprotected intprotected abstract intprotected int(package private) static List<AttributeInfo>AttributeInfo.copyAll(List<AttributeInfo> attributes, ConstPool cp) private static CodeAttribute.LdcEntryCodeAttribute.copyCode(byte[] code, int beginPos, int endPos, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map<String, String> classnameMap) private byte[]CodeAttribute.copyCode(ConstPool destCp, Map<String, String> classnames, ExceptionTable etable, CodeAttribute destCa) Copies code.private static voidCodeAttribute.copyConstPoolInfo(int i, byte[] code, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map<String, String> classnameMap) private static StringClassInfo.getClassName(ConstPool cp) ConstInfo.getClassName(ConstPool cp) ModuleInfo.getModuleName(ConstPool cp) PackageInfo.getPackageName(ConstPool cp) static StringInstructionPrinter.instructionString(CodeIterator iter, int pos, ConstPool pool) Gets a string representation of the bytecode instruction at the specified position.private static StringInstructionPrinter.interfaceMethodInfo(ConstPool pool, int index) private static String(package private) LocalVariableAttributeLocalVariableAttribute.makeThisAttr(ConstPool cp, byte[] dest) (package private) LocalVariableAttributeLocalVariableTypeAttribute.makeThisAttr(ConstPool cp, byte[] dest) private static StringInstructionPrinter.methodInfo(ConstPool pool, int index) (package private) void(package private) void(package private) static AttributeInfoAttributeInfo.read(ConstPool cp, DataInputStream in) voidvoidvoidvoidvoidMethodTypeInfo.renameClass(ConstPool cp, String oldName, String newName, Map<ConstInfo, ConstInfo> cache) voidvoidNameAndTypeInfo.renameClass(ConstPool cp, String oldName, String newName, Map<ConstInfo, ConstInfo> cache) voidStackMap.Writer.toStackMap(ConstPool cp) Converts to aStackMapattribute.StackMapTable.Writer.toStackMapTable(ConstPool cp) Constructs and a return a stack map table containing the written stack map entries.Constructors in javassist.bytecode with parameters of type ConstPoolModifierConstructorDescriptionConstructs an emptyAnnotationDefault_attribute.AnnotationDefaultAttribute(ConstPool cp, byte[] info) Constructs anAnnotationDefault_attribute.(package private)AnnotationDefaultAttribute(ConstPool cp, int n, DataInputStream in) (package private)AnnotationsAttribute(ConstPool cp, int n, DataInputStream in) AnnotationsAttribute(ConstPool cp, String attrname) Constructs an emptyRuntime(In)VisibleAnnotations_attribute.AnnotationsAttribute(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleAnnotations_attribute.protectedAttributeInfo(ConstPool cp, int attrname, byte[] attrinfo) protectedAttributeInfo(ConstPool cp, int n, DataInputStream in) protectedAttributeInfo(ConstPool cp, String attrname) AttributeInfo(ConstPool cp, String attrname, byte[] attrinfo) Constructs anattribute_infostructure.(package private)BootstrapMethodsAttribute(ConstPool cp, int n, DataInputStream in) Constructs a BootstrapMethods attribute.Constructs aBytecodeobject with an empty bytecode sequence.Constructs aBytecodeobject with an empty bytecode sequence.CodeAttribute(ConstPool cp, int stack, int locals, byte[] code, ExceptionTable etable) Constructs aCode_attribute.(package private)CodeAttribute(ConstPool cp, int name_id, DataInputStream in) privateCodeAttribute(ConstPool cp, CodeAttribute src, Map<String, String> classnames) Constructs a copy ofCode_attribute.ConstantAttribute(ConstPool cp, int index) Constructs a ConstantValue attribute.(package private)ConstantAttribute(ConstPool cp, int n, DataInputStream in) (package private)Constructs a copier.(package private)(package private)(package private)Constructs a Deprecated attribute.(package private)DeprecatedAttribute(ConstPool cp, int n, DataInputStream in) (package private)EnclosingMethodAttribute(ConstPool cp, int n, DataInputStream in) EnclosingMethodAttribute(ConstPool cp, String className) Constructs an EnclosingMethod attribute.EnclosingMethodAttribute(ConstPool cp, String className, String methodName, String methodDesc) Constructs an EnclosingMethod attribute.Constructs a new exceptions attribute.(package private)ExceptionsAttribute(ConstPool cp, int n, DataInputStream in) privateExceptionsAttribute(ConstPool cp, ExceptionsAttribute src, Map<String, String> classnames) Constructs a copy of an exceptions attribute.Constructs anexception_table[].(package private)ExceptionTable(ConstPool cp, DataInputStream in) private(package private)FieldInfo(ConstPool cp, DataInputStream in) Constructs afield_infostructure.Constructs an empty InnerClasses attribute.privateInnerClassesAttribute(ConstPool cp, byte[] info) (package private)InnerClassesAttribute(ConstPool cp, int n, DataInputStream in) privateLineNumberAttribute(ConstPool cp, byte[] i) (package private)LineNumberAttribute(ConstPool cp, int n, DataInputStream in) Constructs an empty LocalVariableTable.(package private)LocalVariableAttribute(ConstPool cp, int n, DataInputStream in) LocalVariableAttribute(ConstPool cp, String name) Deprecated.(package private)LocalVariableAttribute(ConstPool cp, String name, byte[] i) Constructs an empty LocalVariableTypeTable.privateLocalVariableTypeAttribute(ConstPool cp, byte[] dest) (package private)LocalVariableTypeAttribute(ConstPool cp, int n, DataInputStream in) privateMethodInfo(ConstPool cp) (package private)MethodInfo(ConstPool cp, DataInputStream in) MethodInfo(ConstPool cp, String methodname, String desc) Constructs amethod_infostructure.MethodInfo(ConstPool cp, String methodname, MethodInfo src, Map<String, String> classnameMap) Constructs a copy ofmethod_infostructure.(package private)MethodParametersAttribute(ConstPool cp, int n, DataInputStream in) MethodParametersAttribute(ConstPool cp, String[] names, int[] flags) Constructs an attribute.privateNestHostAttribute(ConstPool cp, int hostIndex) (package private)NestHostAttribute(ConstPool cp, int n, DataInputStream in) privateNestMembersAttribute(ConstPool cp, byte[] info) (package private)NestMembersAttribute(ConstPool cp, int n, DataInputStream in) (package private)ParameterAnnotationsAttribute(ConstPool cp, int n, DataInputStream in) ParameterAnnotationsAttribute(ConstPool cp, String attrname) Constructs an emptyRuntime(In)VisibleParameterAnnotations_attribute.ParameterAnnotationsAttribute(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleParameterAnnotations_attribute.(package private)Constructs a parser.(package private)Constructs a renamer.(package private)(package private)SignatureAttribute(ConstPool cp, int n, DataInputStream in) SignatureAttribute(ConstPool cp, String signature) Constructs aSignatureattribute.(package private)SourceFileAttribute(ConstPool cp, int n, DataInputStream in) SourceFileAttribute(ConstPool cp, String filename) Constructs a SourceFile attribute.(package private)Constructs astack_mapattribute.(package private)StackMap(ConstPool cp, int name_id, DataInputStream in) (package private)StackMapTable(ConstPool cp, byte[] newInfo) Constructs astack_mapattribute.(package private)StackMapTable(ConstPool cp, int name_id, DataInputStream in) (package private)SubCopier(byte[] attrInfo, ConstPool src, ConstPool dest, Map<String, String> map, TypeAnnotationsWriter w) Constructs a Synthetic attribute.(package private)SyntheticAttribute(ConstPool cp, int n, DataInputStream in) (package private)TypeAnnotationsAttribute(ConstPool cp, int n, DataInputStream in) TypeAnnotationsAttribute(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleTypeAnnotations_attribute. -
Uses of ConstPool in javassist.bytecode.analysis
Fields in javassist.bytecode.analysis declared as ConstPoolConstructors in javassist.bytecode.analysis with parameters of type ConstPool -
Uses of ConstPool in javassist.bytecode.annotation
Fields in javassist.bytecode.annotation declared as ConstPoolModifier and TypeFieldDescription(package private) ConstPoolMemberValue.cp(package private) ConstPoolAnnotation.poolprivate ConstPoolAnnotationsWriter.poolMethods in javassist.bytecode.annotation that return ConstPoolModifier and TypeMethodDescriptionAnnotationsWriter.getConstPool()Obtains the constant pool given to the constructor.Methods in javassist.bytecode.annotation with parameters of type ConstPoolModifier and TypeMethodDescriptionstatic MemberValueAnnotation.createMemberValue(ConstPool cp, CtClass type) Makes an instance ofMemberValue.Constructors in javassist.bytecode.annotation with parameters of type ConstPoolModifierConstructorDescriptionAnnotation(int type, ConstPool cp) Constructs an annotation including no members.Annotation(String typeName, ConstPool cp) Constructs an annotation including no members.Annotation(ConstPool cp, CtClass clazz) Constructs an annotation that can be accessed through the interface represented byclazz.Constructs an annotation member.Constructs an annotation member.AnnotationsWriter(OutputStream os, ConstPool cp) Constructs with the given output stream.ArrayMemberValue(MemberValue t, ConstPool cp) Constructs an array.Constructs an array.BooleanMemberValue(boolean b, ConstPool cp) Constructs a boolean constant value.BooleanMemberValue(int index, ConstPool cp) Constructs a boolean constant value.Constructs a boolean constant value.ByteMemberValue(byte b, ConstPool cp) Constructs a byte constant value.ByteMemberValue(int index, ConstPool cp) Constructs a byte constant value.Constructs a byte constant value.CharMemberValue(char c, ConstPool cp) Constructs a char constant value.CharMemberValue(int index, ConstPool cp) Constructs a char constant value.Constructs a char constant value.ClassMemberValue(int index, ConstPool cp) Constructs a class value.ClassMemberValue(String className, ConstPool cp) Constructs a class value.Constructs a class value.DoubleMemberValue(double d, ConstPool cp) Constructs a double constant value.DoubleMemberValue(int index, ConstPool cp) Constructs a double constant value.Constructs a double constant value.EnumMemberValue(int type, int value, ConstPool cp) Constructs an enum constant value.Constructs an enum constant value.FloatMemberValue(float f, ConstPool cp) Constructs a float constant value.FloatMemberValue(int index, ConstPool cp) Constructs a float constant value.Constructs a float constant value.IntegerMemberValue(int index, ConstPool cp) Constructs an int constant value.Constructs an int constant value.IntegerMemberValue(ConstPool cp, int value) Constructs an int constant value.LongMemberValue(int index, ConstPool cp) Constructs a long constant value.LongMemberValue(long j, ConstPool cp) Constructs a long constant value.Constructs a long constant value.(package private)MemberValue(char tag, ConstPool cp) ShortMemberValue(int index, ConstPool cp) Constructs a short constant value.ShortMemberValue(short s, ConstPool cp) Constructs a short constant value.Constructs a short constant value.StringMemberValue(int index, ConstPool cp) Constructs a string constant value.StringMemberValue(String str, ConstPool cp) Constructs a string constant value.Constructs a string constant value.Constructs with the given output stream. -
Uses of ConstPool in javassist.bytecode.stackmap
Fields in javassist.bytecode.stackmap declared as ConstPoolMethods in javassist.bytecode.stackmap with parameters of type ConstPoolModifier and TypeMethodDescriptionintTypeData.AbsTypeVar.getTypeData(ConstPool cp) intTypeData.BasicType.getTypeData(ConstPool cp) intTypeData.ClassName.getTypeData(ConstPool cp) abstract intTypeData.getTypeData(ConstPool cp) intTypeData.NullType.getTypeData(ConstPool cp) intTypeData.TypeVar.getTypeData(ConstPool cp) intTypeData.UninitData.getTypeData(ConstPool cp) intTypeData.UninitThis.getTypeData(ConstPool cp) intTypeData.UninitTypeVar.getTypeData(ConstPool cp) MapMaker.toStackMap2(ConstPool cp, TypedBlock[] blocks) private voidMapMaker.writeStackFrame(StackMap.Writer writer, ConstPool cp, int offset, TypedBlock tb) private voidMapMaker.writeVerifyTypeInfo(StackMap.Writer writer, ConstPool cp, TypeData[] types, int num) Constructors in javassist.bytecode.stackmap with parameters of type ConstPool -
Uses of ConstPool in javassist.convert
Fields in javassist.convert declared as ConstPoolModifier and TypeFieldDescriptionprotected ConstPoolTransformCall.constPoolprivate ConstPoolTransformFieldAccess.constPoolMethods in javassist.convert with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate intTransformNew.computeMethodref(int typedesc, ConstPool cp) voidTransformAccessArrayField.initialize(ConstPool cp, CtClass clazz, MethodInfo minfo) voidTransformBefore.initialize(ConstPool cp, CodeAttribute attr) voidTransformCall.initialize(ConstPool cp, CodeAttribute attr) voidTransformer.initialize(ConstPool cp, CodeAttribute attr) voidTransformer.initialize(ConstPool cp, CtClass clazz, MethodInfo minfo) voidTransformFieldAccess.initialize(ConstPool cp, CodeAttribute attr) voidTransformNew.initialize(ConstPool cp, CodeAttribute attr) voidTransformNewClass.initialize(ConstPool cp, CodeAttribute attr) (package private) static StringTransformReadField.isField(ClassPool pool, ConstPool cp, CtClass fclass, String fname, boolean is_private, int index) protected voidprotected intTransformBefore.match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) protected intTransformCall.match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) protected intTransformCallToStatic.match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) private intTransformAccessArrayField.replace(ConstPool cp, CodeIterator iterator, int pos, int opcode, String signature) intTransformAccessArrayField.transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) intTransformCall.transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked.abstract intTransformer.transform(CtClass clazz, int pos, CodeIterator it, ConstPool cp) intTransformFieldAccess.transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that a different field is accessed.intTransformNew.transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Replace a sequence of NEW classname DUP ...intTransformNewClass.transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modifies a sequence of NEW classname DUP ...intTransformReadField.transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) intTransformWriteField.transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) -
Uses of ConstPool in javassist.expr
Methods in javassist.expr that return ConstPoolMethods in javassist.expr with parameters of type ConstPool -
Uses of ConstPool in javassist.util.proxy
Methods in javassist.util.proxy with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate static voidProxyFactory.addClassInitializer(ClassFile cf, ConstPool cp, String classname, int size, List<ProxyFactory.Find2MethodsArgs> forwarders) private static voidprivate static voidprivate static MethodInfoProxyFactory.makeConstructor(String thisClassName, Constructor<?> cons, ConstPool cp, Class<?> superClass, boolean doHandlerInit) private voidProxyFactory.makeConstructors(String thisClassName, ClassFile cf, ConstPool cp, String classname) private MethodInfoProxyFactory.makeDelegator(Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName) private static MethodInfoProxyFactory.makeForwarder(String thisClassName, Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName, int index, List<ProxyFactory.Find2MethodsArgs> forwarders) private static MethodInfoProxyFactory.makeWriteReplace(ConstPool cp) private voidProxyFactory.override(String thisClassname, Method meth, String prefix, int index, String desc, ClassFile cf, ConstPool cp, List<ProxyFactory.Find2MethodsArgs> forwarders) private intProxyFactory.overrideMethods(ClassFile cf, ConstPool cp, String className, List<ProxyFactory.Find2MethodsArgs> forwarders) private static voidProxyFactory.setThrows(MethodInfo minfo, ConstPool cp, Class<?>[] exceptions) private static voidProxyFactory.setThrows(MethodInfo minfo, ConstPool cp, Method orig)