@groovy.transform.CompileStatic class AstMethodDispatchUtils extends org.codehaus.groovy.ast.tools.GeneralUtils
Fields inherited from class | Fields |
---|---|
class org.codehaus.groovy.ast.tools.GeneralUtils |
ASSIGN, EQ, NE, NOT_IDENTICAL, LT, AND, OR, CMP, INSTANCEOF |
Constructor and description |
---|
AstMethodDispatchUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static org.codehaus.groovy.ast.expr.MethodCallExpression |
callD(java.lang.Class targetType, java.lang.String var, java.lang.String methodName, org.codehaus.groovy.ast.expr.Expression arguments) Make a direct method call on this object for the given name and arguments |
|
static org.codehaus.groovy.ast.expr.MethodCallExpression |
callD(org.codehaus.groovy.ast.ClassNode targetType, java.lang.String var, java.lang.String methodName, org.codehaus.groovy.ast.expr.Expression arguments) Make a direct method call on this object for the given name and arguments |
|
static org.codehaus.groovy.ast.expr.MethodCallExpression |
callD(org.codehaus.groovy.ast.expr.Expression var, java.lang.String methodName, org.codehaus.groovy.ast.expr.Expression arguments) Make a direct method call on this object for the given name and arguments |
|
static org.codehaus.groovy.ast.expr.MethodCallExpression |
callThisD(java.lang.Class thisType, java.lang.String methodName, org.codehaus.groovy.ast.expr.Expression arguments) Make a direct method call on this object for the given name and arguments |
|
static org.codehaus.groovy.ast.expr.MethodCallExpression |
callThisD(org.codehaus.groovy.ast.ClassNode thisType, java.lang.String methodName, org.codehaus.groovy.ast.expr.Expression arguments) Make a direct method call on this object for the given name and arguments |
|
static org.codehaus.groovy.ast.expr.MapExpression |
namedArgs(java.util.Map<java.lang.String, ? extends org.codehaus.groovy.ast.expr.Expression> args) Create named arguments |
|
static org.codehaus.groovy.ast.Parameter[] |
paramsForArgs(org.codehaus.groovy.ast.expr.Expression expression) |
Methods inherited from class | Name |
---|---|
class org.codehaus.groovy.ast.tools.GeneralUtils |
org.codehaus.groovy.ast.tools.GeneralUtils#getAllMethods(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getSetterName(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#getGetterName(org.codehaus.groovy.ast.PropertyNode), org.codehaus.groovy.ast.tools.GeneralUtils#stmt(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#hasDeclaredMethod(org.codehaus.groovy.ast.ClassNode, java.lang.String, int), org.codehaus.groovy.ast.tools.GeneralUtils#nullX(), org.codehaus.groovy.ast.tools.GeneralUtils#classX(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#classX(java.lang.Class), org.codehaus.groovy.ast.tools.GeneralUtils#varX(org.codehaus.groovy.ast.Variable), org.codehaus.groovy.ast.tools.GeneralUtils#varX(java.lang.String, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#varX(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#callX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#callX(org.codehaus.groovy.ast.expr.Expression, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#callX(org.codehaus.groovy.ast.expr.Expression, java.lang.String, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#callX(org.codehaus.groovy.ast.ClassNode, java.lang.String, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#callX(org.codehaus.groovy.ast.ClassNode, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#ctorX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ctorX(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#localVarX(java.lang.String, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#localVarX(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#inSamePackage(java.lang.Class, java.lang.Class), org.codehaus.groovy.ast.tools.GeneralUtils#inSamePackage(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#andX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#binX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.syntax.Token, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#asX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#assignS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#assignX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#assignNullS(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#attrX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#boolX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#bytecodeX(org.codehaus.groovy.ast.ClassNode, java.util.function.Consumer), org.codehaus.groovy.ast.tools.GeneralUtils#bytecodeX(java.util.function.Consumer), org.codehaus.groovy.ast.tools.GeneralUtils#callSuperX(java.lang.String, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#callSuperX(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#callThisX(java.lang.String, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#callThisX(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#castX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.expr.Expression, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#castX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#catchS(org.codehaus.groovy.ast.Parameter, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#closureX(org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#closureX([Lorg.codehaus.groovy.ast.Parameter;, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#cmpX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#constX(java.lang.Object, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#constX(java.lang.Object), org.codehaus.groovy.ast.tools.GeneralUtils#ctorSuperS(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ctorSuperS(), org.codehaus.groovy.ast.tools.GeneralUtils#ctorSuperX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ctorSuperX(), org.codehaus.groovy.ast.tools.GeneralUtils#ctorThisS(), org.codehaus.groovy.ast.tools.GeneralUtils#ctorThisS(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ctorThisX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ctorThisX(), org.codehaus.groovy.ast.tools.GeneralUtils#declS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#declX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#elvisX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#entryX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#eqX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#equalsNullX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#fieldX(org.codehaus.groovy.ast.ClassNode, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#fieldX(org.codehaus.groovy.ast.FieldNode), org.codehaus.groovy.ast.tools.GeneralUtils#findArg(java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#propX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#propX(org.codehaus.groovy.ast.expr.Expression, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#propX(org.codehaus.groovy.ast.expr.Expression, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#propX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#propX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#getAllProperties(java.util.Set, org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.ClassNode, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#getAllProperties(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getAllProperties(java.util.Set, org.codehaus.groovy.ast.ClassNode, boolean, boolean, boolean, boolean, boolean, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#getAllProperties(java.util.Set, org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.ClassNode, boolean, boolean, boolean, boolean, boolean, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#getInstanceNonPropertyFields(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getInstanceNonPropertyFieldNames(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getInstanceProperties(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getInstancePropertyNames(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getInstancePropertyFields(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getInterfacesAndSuperInterfaces(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getSuperNonPropertyFields(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getSuperPropertyFields(org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#getterThisX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.PropertyNode), org.codehaus.groovy.ast.tools.GeneralUtils#getterX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.PropertyNode), org.codehaus.groovy.ast.tools.GeneralUtils#hasClassX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#hasEqualFieldX(org.codehaus.groovy.ast.FieldNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#hasEqualPropertyX(org.codehaus.groovy.ast.PropertyNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#hasEqualPropertyX(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.PropertyNode, org.codehaus.groovy.ast.expr.VariableExpression), org.codehaus.groovy.ast.tools.GeneralUtils#hasSameFieldX(org.codehaus.groovy.ast.FieldNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#sameX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#hasSamePropertyX(org.codehaus.groovy.ast.PropertyNode, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ifElseS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.stmt.Statement, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#ifElseS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.stmt.Statement, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#ifS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ifS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ifS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#ifS(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#indexX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#isInstanceOfX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#isNullX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#isOneX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#isTrueX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#isZeroX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#listX(java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#list2args(java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#classList2args(java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#ltX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#mapX(java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#neX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#notIdenticalX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#notNullX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#notX(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#orX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#plusX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#returnS(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#safeExpression(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#ternaryX(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#thisPropX(boolean, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#throwS(org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#tryCatchS(org.codehaus.groovy.ast.stmt.Statement, org.codehaus.groovy.ast.stmt.Statement, [Lorg.codehaus.groovy.ast.stmt.CatchStatement;), org.codehaus.groovy.ast.tools.GeneralUtils#tryCatchS(org.codehaus.groovy.ast.stmt.Statement, org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#tryCatchS(org.codehaus.groovy.ast.stmt.Statement), org.codehaus.groovy.ast.tools.GeneralUtils#cloneParams([Lorg.codehaus.groovy.ast.Parameter;), org.codehaus.groovy.ast.tools.GeneralUtils#copyAnnotatedNodeAnnotations(org.codehaus.groovy.ast.AnnotatedNode, java.util.List, java.util.List, boolean), org.codehaus.groovy.ast.tools.GeneralUtils#copyAnnotatedNodeAnnotations(org.codehaus.groovy.ast.AnnotatedNode, java.util.List, java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#createConstructorStatementDefault(org.codehaus.groovy.ast.FieldNode), org.codehaus.groovy.ast.tools.GeneralUtils#convertASTToSource(org.codehaus.groovy.control.io.ReaderSource, org.codehaus.groovy.ast.ASTNode), org.codehaus.groovy.ast.tools.GeneralUtils#copyStatementsWithSuperAdjustment(org.codehaus.groovy.ast.expr.ClosureExpression, org.codehaus.groovy.ast.stmt.BlockStatement), org.codehaus.groovy.ast.tools.GeneralUtils#isDefaultVisibility(int), org.codehaus.groovy.ast.tools.GeneralUtils#isOrImplements(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.ClassNode), org.codehaus.groovy.ast.tools.GeneralUtils#makeDescriptorWithoutReturnType(org.codehaus.groovy.ast.MethodNode), org.codehaus.groovy.ast.tools.GeneralUtils#args(java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#args([Lorg.codehaus.groovy.ast.Parameter;), org.codehaus.groovy.ast.tools.GeneralUtils#args([Ljava.lang.String;), org.codehaus.groovy.ast.tools.GeneralUtils#args([Lorg.codehaus.groovy.ast.expr.Expression;), org.codehaus.groovy.ast.tools.GeneralUtils#param(org.codehaus.groovy.ast.ClassNode, java.lang.String), org.codehaus.groovy.ast.tools.GeneralUtils#param(org.codehaus.groovy.ast.ClassNode, java.lang.String, org.codehaus.groovy.ast.expr.Expression), org.codehaus.groovy.ast.tools.GeneralUtils#params([Lorg.codehaus.groovy.ast.Parameter;), org.codehaus.groovy.ast.tools.GeneralUtils#block(org.codehaus.groovy.ast.VariableScope, [Lorg.codehaus.groovy.ast.stmt.Statement;), org.codehaus.groovy.ast.tools.GeneralUtils#block([Lorg.codehaus.groovy.ast.stmt.Statement;), org.codehaus.groovy.ast.tools.GeneralUtils#block(org.codehaus.groovy.ast.VariableScope, java.util.List), org.codehaus.groovy.ast.tools.GeneralUtils#wait(long), org.codehaus.groovy.ast.tools.GeneralUtils#wait(long, int), org.codehaus.groovy.ast.tools.GeneralUtils#wait(), org.codehaus.groovy.ast.tools.GeneralUtils#equals(java.lang.Object), org.codehaus.groovy.ast.tools.GeneralUtils#toString(), org.codehaus.groovy.ast.tools.GeneralUtils#hashCode(), org.codehaus.groovy.ast.tools.GeneralUtils#getClass(), org.codehaus.groovy.ast.tools.GeneralUtils#notify(), org.codehaus.groovy.ast.tools.GeneralUtils#notifyAll() |
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Create named arguments
args
- The args