On this page
[Java] Class MethodCaller
- org.codehaus.groovy.classgen.asm.MethodCaller
public class MethodCaller
extends Object
A helper class to invoke methods more easily in ASM
Constructor Summary
Constructor and description |
---|
protected MethodCaller()
|
MethodCaller(int opcode, Class theClass, String name) |
MethodCaller(int opcode, Class theClass, String name, int parameterCount) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
call(org.objectweb.asm.MethodVisitor methodVisitor) |
|
protected Method |
getMethod() |
|
public String |
getMethodDescriptor() |
|
public static MethodCaller |
newInterface(Class theClass, String name) |
|
public static MethodCaller |
newStatic(Class theClass, String name) |
|
public static MethodCaller |
newStatic(Class theClass, String name, int parameterCount) |
|
public static MethodCaller |
newVirtual(Class theClass, String name) |
Inherited Methods Summary
Constructor Detail
protected MethodCaller()
- Since:
- 2.5.0
public MethodCaller(int opcode, Class theClass, String name)
public MethodCaller(int opcode, Class theClass, String name, int parameterCount)
Method Detail
public void call(org.objectweb.asm.MethodVisitor methodVisitor)
protected Method getMethod()
public String getMethodDescriptor()
public static MethodCaller newInterface(Class theClass, String name)
public static MethodCaller newStatic(Class theClass, String name)
public static MethodCaller newStatic(Class theClass, String name, int parameterCount)
public static MethodCaller newVirtual(Class theClass, String name)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/codehaus/groovy/classgen/asm/MethodCaller.html