Package | Description |
---|---|
javassist |
The Javassist Core API.
|
javassist.bytecode |
Bytecode-level API.
|
javassist.bytecode.analysis |
Bytecode Analysis API.
|
javassist.bytecode.annotation |
Bytecode-level Annotations API.
|
javassist.bytecode.stackmap | |
javassist.convert | |
javassist.expr |
This package contains the classes for modifying a method body.
|
javassist.util.proxy |
Dynamic proxy (similar to
Enhancer of cglib). |
Modifier and Type | Method and Description |
---|---|
protected void |
CodeConverter.doit(CtClass clazz,
MethodInfo minfo,
ConstPool cp)
Performs code conversion.
|
(package private) int |
CtField.Initializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.CodeInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.PtreeInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.IntInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.LongInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.FloatInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.DoubleInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.StringInitializer.getConstantValue(ConstPool cp,
CtClass type) |
(package private) int |
CtField.CodeInitializer0.getConstantValue2(ConstPool cp,
CtClass type,
ASTree tree) |
private int |
CtBehavior.insertAfterAdvice(Bytecode code,
Javac jv,
java.lang.String src,
ConstPool cp,
CtClass rtype,
int varNo) |
Modifier and Type | Field and Description |
---|---|
private ConstPool |
CodeAnalyzer.constPool |
(package private) ConstPool |
ClassFile.constPool |
(package private) ConstPool |
Bytecode.constPool |
private ConstPool |
ExceptionTable.constPool |
(package private) ConstPool |
MethodInfo.constPool |
protected ConstPool |
AttributeInfo.constPool |
(package private) ConstPool |
FieldInfo.constPool |
(package private) ConstPool |
AnnotationsAttribute.Renamer.cpool |
(package private) ConstPool |
StackMap.Copier.destCp |
(package private) ConstPool |
AnnotationsAttribute.Copier.destPool |
private ConstPool |
StackMapTable.Copier.destPool |
(package private) ConstPool |
AnnotationsAttribute.Parser.pool |
(package private) ConstPool |
StackMap.Copier.srcCp |
(package private) ConstPool |
AnnotationsAttribute.Copier.srcPool |
private ConstPool |
StackMapTable.Copier.srcPool |
Modifier and Type | Method and Description |
---|---|
private ConstPool |
ClassFile.compact0() |
ConstPool |
ClassFile.getConstPool()
Returns a constant pool table.
|
ConstPool |
Bytecode.getConstPool()
Gets a constant pool table.
|
ConstPool |
MethodInfo.getConstPool()
Returns a constant pool table used by this method.
|
ConstPool |
AttributeInfo.getConstPool()
Returns a constant pool table.
|
ConstPool |
FieldInfo.getConstPool()
Returns the constant pool table used
by this
field_info . |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
InstructionPrinter.classInfo(ConstPool pool,
int index) |
(package private) void |
MethodInfo.compact(ConstPool cp)
Copies all constant pool items to a given new constant pool
and replaces the original items with the new ones.
|
(package private) void |
FieldInfo.compact(ConstPool cp)
Copies all constant pool items to a given new constant pool
and replaces the original items with the new ones.
|
abstract int |
ConstInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map classnames) |
int |
ConstInfoPadding.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
ClassInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
NameAndTypeInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
MemberrefInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
StringInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
IntegerInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
FloatInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
LongInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
DoubleInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
Utf8Info.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
MethodHandleInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
MethodTypeInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
int |
InvokeDynamicInfo.copy(ConstPool src,
ConstPool dest,
java.util.Map map) |
AttributeInfo |
ConstantAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
LineNumberAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
DeprecatedAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
ExceptionTable |
ExceptionTable.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy of this
exception_table[] . |
AttributeInfo |
LocalVariableAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
AnnotationsAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Copies this attribute and returns a new copy.
|
AttributeInfo |
AttributeInfo.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
ParameterAnnotationsAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Copies this attribute and returns a new copy.
|
AttributeInfo |
CodeAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
SyntheticAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
StackMapTable.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
ExceptionsAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
EnclosingMethodAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
SignatureAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
BootstrapMethodsAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
AnnotationDefaultAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Copies this attribute and returns a new copy.
|
AttributeInfo |
SourceFileAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
InnerClassesAttribute.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
AttributeInfo |
StackMap.copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
int |
ConstPool.copy(int n,
ConstPool dest,
java.util.Map classnames)
Copies the n-th item in this ConstPool object into the destination
ConstPool object.
|
protected abstract int |
MemberrefInfo.copy2(ConstPool dest,
int cindex,
int ntindex) |
protected int |
FieldrefInfo.copy2(ConstPool dest,
int cindex,
int ntindex) |
protected int |
MethodrefInfo.copy2(ConstPool dest,
int cindex,
int ntindex) |
protected int |
InterfaceMethodrefInfo.copy2(ConstPool dest,
int cindex,
int ntindex) |
(package private) static java.util.ArrayList |
AttributeInfo.copyAll(java.util.ArrayList list,
ConstPool cp) |
private static CodeAttribute.LdcEntry |
CodeAttribute.copyCode(byte[] code,
int beginPos,
int endPos,
ConstPool srcCp,
byte[] newcode,
ConstPool destCp,
java.util.Map classnameMap) |
private byte[] |
CodeAttribute.copyCode(ConstPool destCp,
java.util.Map classnames,
ExceptionTable etable,
CodeAttribute destCa)
Copies code.
|
private static void |
CodeAttribute.copyConstPoolInfo(int i,
byte[] code,
ConstPool srcCp,
byte[] newcode,
ConstPool destCp,
java.util.Map classnameMap) |
private static java.lang.String |
InstructionPrinter.fieldInfo(ConstPool pool,
int index) |
java.lang.String |
ConstInfo.getClassName(ConstPool cp) |
java.lang.String |
ClassInfo.getClassName(ConstPool cp) |
static java.lang.String |
InstructionPrinter.instructionString(CodeIterator iter,
int pos,
ConstPool pool)
Gets a string representation of the bytecode instruction at the specified
position.
|
private static java.lang.String |
InstructionPrinter.interfaceMethodInfo(ConstPool pool,
int index) |
private static java.lang.String |
InstructionPrinter.ldc(ConstPool pool,
int index) |
(package private) LocalVariableAttribute |
LocalVariableAttribute.makeThisAttr(ConstPool cp,
byte[] dest) |
(package private) LocalVariableAttribute |
LocalVariableTypeAttribute.makeThisAttr(ConstPool cp,
byte[] dest) |
private static java.lang.String |
InstructionPrinter.methodInfo(ConstPool pool,
int index) |
(package private) void |
MethodInfo.prune(ConstPool cp) |
(package private) void |
FieldInfo.prune(ConstPool cp) |
(package private) static AttributeInfo |
AttributeInfo.read(ConstPool cp,
java.io.DataInputStream in) |
void |
ConstInfo.renameClass(ConstPool cp,
java.util.Map classnames,
java.util.HashMap cache) |
void |
ClassInfo.renameClass(ConstPool cp,
java.util.Map map,
java.util.HashMap cache) |
void |
NameAndTypeInfo.renameClass(ConstPool cp,
java.util.Map map,
java.util.HashMap cache) |
void |
MethodTypeInfo.renameClass(ConstPool cp,
java.util.Map map,
java.util.HashMap cache) |
void |
ConstInfo.renameClass(ConstPool cp,
java.lang.String oldName,
java.lang.String newName,
java.util.HashMap cache) |
void |
ClassInfo.renameClass(ConstPool cp,
java.lang.String oldName,
java.lang.String newName,
java.util.HashMap cache) |
void |
NameAndTypeInfo.renameClass(ConstPool cp,
java.lang.String oldName,
java.lang.String newName,
java.util.HashMap cache) |
void |
MethodTypeInfo.renameClass(ConstPool cp,
java.lang.String oldName,
java.lang.String newName,
java.util.HashMap cache) |
StackMap |
StackMap.Writer.toStackMap(ConstPool cp)
Converts to a
StackMap attribute. |
StackMapTable |
StackMapTable.Writer.toStackMapTable(ConstPool cp)
Constructs and a return a stack map table containing
the written stack map entries.
|
Constructor and Description |
---|
AnnotationDefaultAttribute(ConstPool cp)
Constructs an empty
AnnotationDefault_attribute . |
AnnotationDefaultAttribute(ConstPool cp,
byte[] info)
Constructs an
AnnotationDefault_attribute . |
AnnotationDefaultAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
AnnotationsAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
AnnotationsAttribute(ConstPool cp,
java.lang.String attrname)
Constructs an empty
Runtime(In)VisibleAnnotations_attribute . |
AnnotationsAttribute(ConstPool cp,
java.lang.String attrname,
byte[] info)
Constructs a
Runtime(In)VisibleAnnotations_attribute . |
AttributeInfo(ConstPool cp,
int attrname,
byte[] attrinfo) |
AttributeInfo(ConstPool cp,
int n,
java.io.DataInputStream in) |
AttributeInfo(ConstPool cp,
java.lang.String attrname) |
AttributeInfo(ConstPool cp,
java.lang.String attrname,
byte[] attrinfo)
Constructs an
attribute_info structure. |
BootstrapMethodsAttribute(ConstPool cp,
BootstrapMethodsAttribute.BootstrapMethod[] methods)
Constructs a BootstrapMethods attribute.
|
BootstrapMethodsAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
Bytecode(ConstPool cp)
Constructs a
Bytecode object with an empty bytecode
sequence. |
Bytecode(ConstPool cp,
int stacksize,
int localvars)
Constructs a
Bytecode object with an empty bytecode
sequence. |
CodeAttribute(ConstPool cp,
CodeAttribute src,
java.util.Map classnames)
Constructs a copy of
Code_attribute . |
CodeAttribute(ConstPool cp,
int name_id,
java.io.DataInputStream in) |
CodeAttribute(ConstPool cp,
int stack,
int locals,
byte[] code,
ExceptionTable etable)
Constructs a
Code_attribute . |
ConstantAttribute(ConstPool cp,
int index)
Constructs a ConstantValue attribute.
|
ConstantAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
Copier(byte[] info,
ConstPool src,
ConstPool dest,
java.util.Map map)
Constructs a copier.
|
Copier(ConstPool src,
byte[] data,
ConstPool dest,
java.util.Map names) |
Copier(StackMap map,
ConstPool newCp,
java.util.Map classnames) |
DeprecatedAttribute(ConstPool cp)
Constructs a Deprecated attribute.
|
DeprecatedAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
EnclosingMethodAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
EnclosingMethodAttribute(ConstPool cp,
java.lang.String className)
Constructs an EnclosingMethod attribute.
|
EnclosingMethodAttribute(ConstPool cp,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDesc)
Constructs an EnclosingMethod attribute.
|
ExceptionsAttribute(ConstPool cp)
Constructs a new exceptions attribute.
|
ExceptionsAttribute(ConstPool cp,
ExceptionsAttribute src,
java.util.Map classnames)
Constructs a copy of an exceptions attribute.
|
ExceptionsAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
ExceptionTable(ConstPool cp)
Constructs an
exception_table[] . |
ExceptionTable(ConstPool cp,
java.io.DataInputStream in) |
FieldInfo(ConstPool cp) |
FieldInfo(ConstPool cp,
java.io.DataInputStream in) |
FieldInfo(ConstPool cp,
java.lang.String fieldName,
java.lang.String desc)
Constructs a
field_info structure. |
InnerClassesAttribute(ConstPool cp)
Constructs an empty InnerClasses attribute.
|
InnerClassesAttribute(ConstPool cp,
byte[] info) |
InnerClassesAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
LineNumberAttribute(ConstPool cp,
byte[] i) |
LineNumberAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
LocalVariableAttribute(ConstPool cp)
Constructs an empty LocalVariableTable.
|
LocalVariableAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
LocalVariableAttribute(ConstPool cp,
java.lang.String name)
Deprecated.
|
LocalVariableAttribute(ConstPool cp,
java.lang.String name,
byte[] i) |
LocalVariableTypeAttribute(ConstPool cp)
Constructs an empty LocalVariableTypeTable.
|
LocalVariableTypeAttribute(ConstPool cp,
byte[] dest) |
LocalVariableTypeAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
MethodInfo(ConstPool cp) |
MethodInfo(ConstPool cp,
java.io.DataInputStream in) |
MethodInfo(ConstPool cp,
java.lang.String methodname,
MethodInfo src,
java.util.Map classnameMap)
Constructs a copy of
method_info structure. |
MethodInfo(ConstPool cp,
java.lang.String methodname,
java.lang.String desc)
Constructs a
method_info structure. |
ParameterAnnotationsAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
ParameterAnnotationsAttribute(ConstPool cp,
java.lang.String attrname)
Constructs an empty
Runtime(In)VisibleParameterAnnotations_attribute . |
ParameterAnnotationsAttribute(ConstPool cp,
java.lang.String attrname,
byte[] info)
Constructs
a
Runtime(In)VisibleParameterAnnotations_attribute . |
Parser(byte[] info,
ConstPool cp)
Constructs a parser.
|
Renamer(byte[] info,
ConstPool cp,
java.util.Map map)
Constructs a renamer.
|
SignatureAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
SignatureAttribute(ConstPool cp,
java.lang.String signature)
Constructs a
Signature attribute. |
SourceFileAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
SourceFileAttribute(ConstPool cp,
java.lang.String filename)
Constructs a SourceFile attribute.
|
StackMap(ConstPool cp,
byte[] newInfo)
Constructs a
stack_map attribute. |
StackMap(ConstPool cp,
int name_id,
java.io.DataInputStream in) |
StackMapTable(ConstPool cp,
byte[] newInfo)
Constructs a
stack_map attribute. |
StackMapTable(ConstPool cp,
int name_id,
java.io.DataInputStream in) |
SyntheticAttribute(ConstPool cp)
Constructs a Synthetic attribute.
|
SyntheticAttribute(ConstPool cp,
int n,
java.io.DataInputStream in) |
Modifier and Type | Field and Description |
---|---|
private ConstPool |
Executor.constPool |
Constructor and Description |
---|
Executor(ClassPool classPool,
ConstPool constPool) |
Modifier and Type | Field and Description |
---|---|
(package private) ConstPool |
MemberValue.cp |
(package private) ConstPool |
Annotation.pool |
private ConstPool |
AnnotationsWriter.pool |
Modifier and Type | Method and Description |
---|---|
ConstPool |
AnnotationsWriter.getConstPool()
Obtains the constant pool given to the constructor.
|
Modifier and Type | Method and Description |
---|---|
static MemberValue |
Annotation.createMemberValue(ConstPool cp,
CtClass type)
Makes an instance of
MemberValue . |
Constructor and Description |
---|
Annotation(ConstPool cp,
CtClass clazz)
Constructs an annotation that can be accessed through the interface
represented by
clazz . |
Annotation(int type,
ConstPool cp)
Constructs an annotation including no members.
|
Annotation(java.lang.String typeName,
ConstPool cp)
Constructs an annotation including no members.
|
AnnotationMemberValue(Annotation a,
ConstPool cp)
Constructs an annotation member.
|
AnnotationMemberValue(ConstPool cp)
Constructs an annotation member.
|
AnnotationsWriter(java.io.OutputStream os,
ConstPool cp)
Constructs with the given output stream.
|
ArrayMemberValue(ConstPool cp)
Constructs an array.
|
ArrayMemberValue(MemberValue t,
ConstPool cp)
Constructs an array.
|
BooleanMemberValue(boolean b,
ConstPool cp)
Constructs a boolean constant value.
|
BooleanMemberValue(ConstPool cp)
Constructs a boolean constant value.
|
BooleanMemberValue(int index,
ConstPool cp)
Constructs a boolean constant value.
|
ByteMemberValue(byte b,
ConstPool cp)
Constructs a byte constant value.
|
ByteMemberValue(ConstPool cp)
Constructs a byte constant value.
|
ByteMemberValue(int index,
ConstPool cp)
Constructs a byte constant value.
|
CharMemberValue(char c,
ConstPool cp)
Constructs a char constant value.
|
CharMemberValue(ConstPool cp)
Constructs a char constant value.
|
CharMemberValue(int index,
ConstPool cp)
Constructs a char constant value.
|
ClassMemberValue(ConstPool cp)
Constructs a class value.
|
ClassMemberValue(int index,
ConstPool cp)
Constructs a class value.
|
ClassMemberValue(java.lang.String className,
ConstPool cp)
Constructs a class value.
|
DoubleMemberValue(ConstPool cp)
Constructs a double constant value.
|
DoubleMemberValue(double d,
ConstPool cp)
Constructs a double constant value.
|
DoubleMemberValue(int index,
ConstPool cp)
Constructs a double constant value.
|
EnumMemberValue(ConstPool cp)
Constructs an enum constant value.
|
EnumMemberValue(int type,
int value,
ConstPool cp)
Constructs an enum constant value.
|
FloatMemberValue(ConstPool cp)
Constructs a float constant value.
|
FloatMemberValue(float f,
ConstPool cp)
Constructs a float constant value.
|
FloatMemberValue(int index,
ConstPool cp)
Constructs a float constant value.
|
IntegerMemberValue(ConstPool cp)
Constructs an int constant value.
|
IntegerMemberValue(ConstPool cp,
int value)
Constructs an int constant value.
|
IntegerMemberValue(int index,
ConstPool cp)
Constructs an int constant value.
|
LongMemberValue(ConstPool cp)
Constructs a long constant value.
|
LongMemberValue(int index,
ConstPool cp)
Constructs a long constant value.
|
LongMemberValue(long j,
ConstPool cp)
Constructs a long constant value.
|
MemberValue(char tag,
ConstPool cp) |
ShortMemberValue(ConstPool cp)
Constructs a short constant value.
|
ShortMemberValue(int index,
ConstPool cp)
Constructs a short constant value.
|
ShortMemberValue(short s,
ConstPool cp)
Constructs a short constant value.
|
StringMemberValue(ConstPool cp)
Constructs a string constant value.
|
StringMemberValue(int index,
ConstPool cp)
Constructs a string constant value.
|
StringMemberValue(java.lang.String str,
ConstPool cp)
Constructs a string constant value.
|
Modifier and Type | Field and Description |
---|---|
protected ConstPool |
Tracer.cpool |
Modifier and Type | Method and Description |
---|---|
abstract int |
TypeData.getTypeData(ConstPool cp) |
int |
TypeData.BasicType.getTypeData(ConstPool cp) |
int |
TypeData.AbsTypeVar.getTypeData(ConstPool cp) |
int |
TypeData.TypeVar.getTypeData(ConstPool cp) |
int |
TypeData.UninitTypeVar.getTypeData(ConstPool cp) |
int |
TypeData.ClassName.getTypeData(ConstPool cp) |
int |
TypeData.NullType.getTypeData(ConstPool cp) |
int |
TypeData.UninitData.getTypeData(ConstPool cp) |
int |
TypeData.UninitThis.getTypeData(ConstPool cp) |
StackMap |
MapMaker.toStackMap2(ConstPool cp,
TypedBlock[] blocks) |
private void |
MapMaker.writeStackFrame(StackMap.Writer writer,
ConstPool cp,
int offset,
TypedBlock tb) |
private void |
MapMaker.writeVerifyTypeInfo(StackMap.Writer writer,
ConstPool cp,
TypeData[] types,
int num) |
Constructor and Description |
---|
Tracer(ClassPool classes,
ConstPool cp,
int maxStack,
int maxLocals,
java.lang.String retType) |
Modifier and Type | Field and Description |
---|---|
protected ConstPool |
TransformCall.constPool |
private ConstPool |
TransformFieldAccess.constPool |
Modifier and Type | Method and Description |
---|---|
private int |
TransformNew.computeMethodref(int typedesc,
ConstPool cp) |
void |
TransformNewClass.initialize(ConstPool cp,
CodeAttribute attr) |
void |
TransformBefore.initialize(ConstPool cp,
CodeAttribute attr) |
void |
TransformNew.initialize(ConstPool cp,
CodeAttribute attr) |
void |
Transformer.initialize(ConstPool cp,
CodeAttribute attr) |
void |
TransformCall.initialize(ConstPool cp,
CodeAttribute attr) |
void |
TransformFieldAccess.initialize(ConstPool cp,
CodeAttribute attr) |
void |
Transformer.initialize(ConstPool cp,
CtClass clazz,
MethodInfo minfo) |
void |
TransformAccessArrayField.initialize(ConstPool cp,
CtClass clazz,
MethodInfo minfo) |
(package private) static java.lang.String |
TransformReadField.isField(ClassPool pool,
ConstPool cp,
CtClass fclass,
java.lang.String fname,
boolean is_private,
int index) |
protected void |
TransformBefore.makeCode(CtClass[] paramTypes,
ConstPool cp) |
protected int |
TransformBefore.match(int c,
int pos,
CodeIterator iterator,
int typedesc,
ConstPool cp) |
protected int |
TransformCall.match(int c,
int pos,
CodeIterator iterator,
int typedesc,
ConstPool cp) |
private int |
TransformAccessArrayField.replace(ConstPool cp,
CodeIterator iterator,
int pos,
int opcode,
java.lang.String signature) |
int |
TransformWriteField.transform(CtClass tclazz,
int pos,
CodeIterator iterator,
ConstPool cp) |
int |
TransformNewClass.transform(CtClass clazz,
int pos,
CodeIterator iterator,
ConstPool cp)
Modifies a sequence of
NEW classname
DUP
...
|
int |
TransformNew.transform(CtClass clazz,
int pos,
CodeIterator iterator,
ConstPool cp)
Replace a sequence of
NEW classname
DUP
...
|
int |
TransformReadField.transform(CtClass tclazz,
int pos,
CodeIterator iterator,
ConstPool cp) |
abstract int |
Transformer.transform(CtClass clazz,
int pos,
CodeIterator it,
ConstPool cp) |
int |
TransformAccessArrayField.transform(CtClass tclazz,
int pos,
CodeIterator iterator,
ConstPool cp) |
int |
TransformCall.transform(CtClass clazz,
int pos,
CodeIterator iterator,
ConstPool cp)
Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL
so that a different method is invoked.
|
int |
TransformFieldAccess.transform(CtClass clazz,
int pos,
CodeIterator iterator,
ConstPool cp)
Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that
a different field is accessed.
|
Modifier and Type | Method and Description |
---|---|
protected ConstPool |
Expr.getConstPool() |
Modifier and Type | Method and Description |
---|---|
private int |
MethodCall.getNameAndType(ConstPool cp) |
Modifier and Type | Method and Description |
---|---|
private static void |
ProxyFactory.addClassInitializer(ClassFile cf,
ConstPool cp,
java.lang.String classname,
int size,
java.util.ArrayList forwarders) |
private static void |
ProxyFactory.addGetter(java.lang.String classname,
ClassFile cf,
ConstPool cp) |
private static void |
ProxyFactory.addSetter(java.lang.String classname,
ClassFile cf,
ConstPool cp) |
private static MethodInfo |
ProxyFactory.makeConstructor(java.lang.String thisClassName,
java.lang.reflect.Constructor cons,
ConstPool cp,
java.lang.Class superClass,
boolean doHandlerInit) |
private void |
ProxyFactory.makeConstructors(java.lang.String thisClassName,
ClassFile cf,
ConstPool cp,
java.lang.String classname) |
private static MethodInfo |
ProxyFactory.makeDelegator(java.lang.reflect.Method meth,
java.lang.String desc,
ConstPool cp,
java.lang.Class declClass,
java.lang.String delegatorName) |
private static MethodInfo |
ProxyFactory.makeForwarder(java.lang.String thisClassName,
java.lang.reflect.Method meth,
java.lang.String desc,
ConstPool cp,
java.lang.Class declClass,
java.lang.String delegatorName,
int index,
java.util.ArrayList forwarders) |
private static MethodInfo |
ProxyFactory.makeWriteReplace(ConstPool cp) |
private void |
ProxyFactory.override(java.lang.String thisClassname,
java.lang.reflect.Method meth,
java.lang.String prefix,
int index,
java.lang.String desc,
ClassFile cf,
ConstPool cp,
java.util.ArrayList forwarders) |
private int |
ProxyFactory.overrideMethods(ClassFile cf,
ConstPool cp,
java.lang.String className,
java.util.ArrayList forwarders) |
private static void |
ProxyFactory.setThrows(MethodInfo minfo,
ConstPool cp,
java.lang.Class[] exceptions) |
private static void |
ProxyFactory.setThrows(MethodInfo minfo,
ConstPool cp,
java.lang.reflect.Method orig) |