Top Fields Constructors Methods
javassist.convert

public Class TransformCall

extends Transformer
Class Inheritance
Known Direct Subclasses
javassist.convert.TransformCallToStatic, javassist.convert.TransformBefore
Imports
javassist.ClassPool, .CtClass, .CtMethod, .Modifier, .NotFoundException, javassist.bytecode.BadBytecode, .CodeAttribute, .CodeIterator, .ConstPool

Field Summary

Modifier and TypeField and Description
protected String
protected ConstPool
protected String
protected String
protected String
protected int
protected boolean
protected String

Constructor Summary

AccessConstructor and Description
public
TransformCall(Transformer next, CtMethod origMethod, CtMethod substMethod)

public
TransformCall(Transformer next, String oldMethodName, CtMethod substMethod)

Method Summary

Modifier and TypeMethod and Description
public void
protected int
match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp)

private boolean
public int
transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)

Implements abstract javassist.convert.Transformer.transform.

Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked.

Inherited from javassist.convert.Transformer:
cleanextraLocalsextraStackgetNextinitialize

Field Detail

classnameback to summary
protected String classname
constPoolback to summary
protected ConstPool constPool
methodDescriptorback to summary
protected String methodDescriptor
methodnameback to summary
protected String methodname
newClassnameback to summary
protected String newClassname
newIndexback to summary
protected int newIndex
newMethodIsPrivateback to summary
protected boolean newMethodIsPrivate
newMethodnameback to summary
protected String newMethodname

Constructor Detail

TransformCallback to summary
public TransformCall(Transformer next, CtMethod origMethod, CtMethod substMethod)
TransformCallback to summary
public TransformCall(Transformer next, String oldMethodName, CtMethod substMethod)

Method Detail

initializeback to summary
public void initialize(ConstPool cp, CodeAttribute attr)

Overrides javassist.convert.Transformer.initialize.

Annotations
@Override
matchback to summary
protected int match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) throws BadBytecode
matchClassback to summary
private boolean matchClass(String name, ClassPool pool)
transformback to summary
public int transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) throws BadBytecode

Implements abstract javassist.convert.Transformer.transform.

Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked. The class name in the operand of these instructions might be a subclass of the target class specified by classname. This method transforms the instruction in that case unless the subclass overrides the target method.

Annotations
@Override