public class ScriptHelper
extends java.lang.Object
| Constructor and Description |
|---|
ScriptHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.codehaus.groovy.ast.MethodNode |
getMethodNodeForExpression(org.codehaus.groovy.ast.ClassNode node,
ExprDef exprDef) |
static org.codehaus.groovy.ast.MethodNode |
getMethodNodeForOperation(org.codehaus.groovy.ast.ClassNode node,
OperationDefinitionImpl operDef) |
static OperationDefinitionImpl |
getOperationDefinitionForMethod(OperationDefinitionsImpl operDefs,
java.lang.reflect.Method method) |
static OperationDefinitionImpl |
getOperationDefinitionForMethodNode(OperationDefinitionsImpl operDefs,
org.codehaus.groovy.ast.MethodNode method) |
static OperationDefinitionImpl |
getOperationDefinitionForName(OperationDefinitionsImpl operDefs,
java.lang.String name,
java.lang.Class... params) |
static OperationDefinitionImpl |
getOperationDefinitionForName(OperationDefinitionsImpl operDefs,
java.lang.String name,
java.lang.String... params) |
static ExprEval.TrustMode |
getTrustMode(org.codehaus.groovy.ast.MethodNode method) |
static java.lang.Object |
invokeMethod(groovy.lang.Script script,
ExprDef exprDef) |
static ExprDef |
lookupExprDef(CodeSource codeSource,
org.codehaus.groovy.ast.MethodNode method) |
static void |
throwMissingMethodException(java.lang.String method,
java.lang.Object object,
java.lang.Object args)
For internal framework use only.
|
public static void throwMissingMethodException(java.lang.String method,
java.lang.Object object,
java.lang.Object args)
method - The name of the methodobject - The target object of the methodargs - The arguments of the method
Throw a custom missing method exception given the supplied inputs.public static ExprEval.TrustMode getTrustMode(org.codehaus.groovy.ast.MethodNode method)
public static org.codehaus.groovy.ast.MethodNode getMethodNodeForExpression(org.codehaus.groovy.ast.ClassNode node,
ExprDef exprDef)
public static org.codehaus.groovy.ast.MethodNode getMethodNodeForOperation(org.codehaus.groovy.ast.ClassNode node,
OperationDefinitionImpl operDef)
public static OperationDefinitionImpl getOperationDefinitionForMethod(OperationDefinitionsImpl operDefs, java.lang.reflect.Method method)
public static OperationDefinitionImpl getOperationDefinitionForMethodNode(OperationDefinitionsImpl operDefs, org.codehaus.groovy.ast.MethodNode method)
public static OperationDefinitionImpl getOperationDefinitionForName(OperationDefinitionsImpl operDefs, java.lang.String name, java.lang.String... params)
public static OperationDefinitionImpl getOperationDefinitionForName(OperationDefinitionsImpl operDefs, java.lang.String name, java.lang.Class... params)
public static ExprDef lookupExprDef(CodeSource codeSource, org.codehaus.groovy.ast.MethodNode method)
public static java.lang.Object invokeMethod(groovy.lang.Script script,
ExprDef exprDef)
throws java.lang.Exception
java.lang.Exception