public class ScriptClassInfo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptClassInfo.MethodArgument
Painless
Classes and name of the argument to the execute method. |
| Constructor and Description |
|---|
ScriptClassInfo(PainlessLookup painlessLookup,
java.lang.Class<?> baseClass) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getBaseClass()
The interface that the Painless script should implement.
|
java.util.List<ScriptClassInfo.MethodArgument> |
getExecuteArguments()
Painless
Classs and names of the arguments to the execute method. |
org.objectweb.asm.commons.Method |
getExecuteMethod()
An asm method descriptor for the
execute method. |
java.lang.Class<?> |
getExecuteMethodReturnType()
The Painless
Class or the return type of the execute method. |
java.util.List<org.objectweb.asm.commons.Method> |
getGetMethods()
The
getVarName methods that must be implemented by Painless to complete implementing the interface. |
java.util.List<java.lang.Class<?>> |
getGetReturns()
The
getVarName methods return types. |
java.util.List<org.objectweb.asm.commons.Method> |
getNeedsMethods()
The
uses$varName methods that must be implemented by Painless to complete implementing the interface. |
public ScriptClassInfo(PainlessLookup painlessLookup, java.lang.Class<?> baseClass)
public java.lang.Class<?> getBaseClass()
public org.objectweb.asm.commons.Method getExecuteMethod()
execute method.public java.lang.Class<?> getExecuteMethodReturnType()
Class or the return type of the execute method. This is used to generate the appropriate
return bytecode.public java.util.List<ScriptClassInfo.MethodArgument> getExecuteArguments()
Classs and names of the arguments to the execute method. The names are exposed to the Painless
script.public java.util.List<org.objectweb.asm.commons.Method> getNeedsMethods()
uses$varName methods that must be implemented by Painless to complete implementing the interface.public java.util.List<org.objectweb.asm.commons.Method> getGetMethods()
getVarName methods that must be implemented by Painless to complete implementing the interface.public java.util.List<java.lang.Class<?>> getGetReturns()
getVarName methods return types.