Top Description Fields Constructors Methods
org.codehaus.groovy.classgen.asm

public Class MethodCaller

extends Object
implements Opcodes
Class Inheritance
All Implemented Interfaces
org.objectweb.asm.Opcodes
Known Direct Subclasses
org.codehaus.groovy.classgen.asm.indy.sc.IndyStaticTypesMultiTypeDispatcher.GenericArrayAccess
Imports
org.codehaus.groovy.classgen.ClassGeneratorException, org.objectweb.asm.MethodVisitor, .Opcodes, .Type, java.lang.reflect.Method

A helper class to invoke methods more easily in ASM

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private int
private Class<T>

Constructor Summary

AccessConstructor and Description
protected
public
MethodCaller(int opcode, Class<T> theClass, String name)

Method Summary

Modifier and TypeMethod and Description
public void
call(MethodVisitor methodVisitor)

protected Method
public String
public static MethodCaller
newInterface(Class<T> theClass, String name)

public static MethodCaller
newStatic(Class<T> theClass, String name)

public static MethodCaller
newVirtual(Class<T> theClass, String name)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

internalNameback to summary
private String internalName
methodDescriptorback to summary
private String methodDescriptor
nameback to summary
private String name
opcodeback to summary
private int opcode
theClassback to summary
private Class<T> theClass

Constructor Detail

MethodCallerback to summary
protected MethodCaller()
Since
2.5.0
MethodCallerback to summary
public MethodCaller(int opcode, Class<T> theClass, String name)

Method Detail

callback to summary
public void call(MethodVisitor methodVisitor)
getMethodback to summary
protected Method getMethod()
getMethodDescriptorback to summary
public String getMethodDescriptor()
newInterfaceback to summary
public static MethodCaller newInterface(Class<T> theClass, String name)
newStaticback to summary
public static MethodCaller newStatic(Class<T> theClass, String name)
newVirtualback to summary
public static MethodCaller newVirtual(Class<T> theClass, String name)