# Uses of Class
serp.bytecode.MethodInstruction

Packages that use MethodInstruction
Package
Description
serp.bytecode
Bytecode Manipuation
serp.bytecode.visitor
Bytecode Visitor

## Uses of MethodInstruction in serp.bytecode

Methods in serp.bytecode that return MethodInstruction
Modifier and Type
Method
Description
`MethodInstruction`
Code.`invokedynamic()`
Invoke a dynamic method; the `invokedynamic` opcode.
`MethodInstruction`
Code.`invokeinterface()`
Invoke a method on an interface; the `invokeinterface` opcode.
`MethodInstruction`
Code.`invokespecial()`
Invoke a method non-virtually, as for constructors and superclass methods; the `invokespecial` opcode.
`MethodInstruction`
Code.`invokestatic()`
Invoke a static method; the `invokestatic` opcode.
`MethodInstruction`
Code.`invokevirtual()`
Invoke a virtual method; the `invokevirtual` opcode.
`MethodInstruction`
MethodInstruction.`setMethod(Class dec, String name, Class returnType, Class[] params)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethod(Constructor method)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethod(Method method)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethod(String name, Class returnType, Class[] params)`
Set the method this instruction operates on, for methods that are declared by the current class.
`MethodInstruction`
MethodInstruction.`setMethod(String name, String returnType, String[] params)`
Set the method this instruction operates on, for methods that are declared by the current class.
`MethodInstruction`
MethodInstruction.`setMethod(String dec, String name, String returnType, String[] params)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethod(String name, BCClass returnType, BCClass[] params)`
Set the method this instruction operates on, for methods that are declared by the current class.
`MethodInstruction`
MethodInstruction.`setMethod(BCClass dec, String name, BCClass returnType, BCClass[] params)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethod(BCMethod method)`
Set the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodDeclarer(Class type)`
Set the declaring type of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodDeclarer(String type)`
Set the declaring type of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodDeclarer(BCClass type)`
Set the declaring type of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodIndex(int index)`
Set the index in the class `ConstantPool` of the `ComplexEntry` describing the method to operate on.
`MethodInstruction`
MethodInstruction.`setMethodName(String name)`
Set the name of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodParams(String[] types)`
Set the param types of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodReturn(Class type)`
Set the return type of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodReturn(String type)`
Set the return type of the method this instruction operates on.
`MethodInstruction`
MethodInstruction.`setMethodReturn(BCClass type)`
Set the return type of the method this instruction operates on.

## Uses of MethodInstruction in serp.bytecode.visitor

Methods in serp.bytecode.visitor with parameters of type MethodInstruction
Modifier and Type
Method
Description
`void`
BCVisitor.`enterMethodInstruction(MethodInstruction obj)`
`void`
PrettyPrintVisitor.`enterMethodInstruction(MethodInstruction obj)`
`void`
BCVisitor.`exitMethodInstruction(MethodInstruction obj)`