Package org.codehaus.groovy.classgen.asm
Class MethodCaller
- java.lang.Object
-
- org.codehaus.groovy.classgen.asm.MethodCaller
-
public class MethodCaller extends Object
A helper class to invoke methods more easily in ASM
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMethodCaller()MethodCaller(int opcode, Class theClass, String name)MethodCaller(int opcode, Class theClass, String name, int parameterCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(org.objectweb.asm.MethodVisitor methodVisitor)protected MethodgetMethod()StringgetMethodDescriptor()static MethodCallernewInterface(Class theClass, String name)static MethodCallernewStatic(Class theClass, String name)static MethodCallernewStatic(Class theClass, String name, int parameterCount)static MethodCallernewVirtual(Class theClass, String name)
-
-
-
Method Detail
-
newStatic
public static MethodCaller newStatic(Class theClass, String name)
-
newStatic
public static MethodCaller newStatic(Class theClass, String name, int parameterCount)
-
newInterface
public static MethodCaller newInterface(Class theClass, String name)
-
newVirtual
public static MethodCaller newVirtual(Class theClass, String name)
-
call
public void call(org.objectweb.asm.MethodVisitor methodVisitor)
-
getMethodDescriptor
public String getMethodDescriptor()
-
getMethod
protected Method getMethod()
-
-