Class AstUtil

  • All Implemented Interfaces:
    groovy.lang.GroovyObject

    public class AstUtil
    extends Object
    implements groovy.lang.GroovyObject
    • Constructor Detail

      • AstUtil

        public AstUtil()
    • Method Detail

      • getMetaClass

        public groovy.lang.MetaClass getMetaClass()
        Specified by:
        getMetaClass in interface groovy.lang.GroovyObject
      • setMetaClass

        public void setMetaClass​(groovy.lang.MetaClass mc)
        Specified by:
        setMetaClass in interface groovy.lang.GroovyObject
      • invokeMethod

        public Object invokeMethod​(String method,
                                   Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
      • getProperty

        public Object getProperty​(String property)
        Specified by:
        getProperty in interface groovy.lang.GroovyObject
      • setProperty

        public void setProperty​(String property,
                                Object value)
        Specified by:
        setProperty in interface groovy.lang.GroovyObject
      • isEmptyMethod

        public static boolean isEmptyMethod​(org.codehaus.groovy.ast.MethodNode methodNode)
      • isClosureField

        public static boolean isClosureField​(org.codehaus.groovy.ast.FieldNode fieldNode)
      • isBlock

        public static boolean isBlock​(org.codehaus.groovy.ast.stmt.Statement statement)
      • isEmptyBlock

        public static boolean isEmptyBlock​(org.codehaus.groovy.ast.stmt.Statement statement)
      • getMethodArguments

        public static List getMethodArguments​(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
      • isMethodCall

        public static boolean isMethodCall​(org.codehaus.groovy.ast.stmt.Statement stmt,
                                           String methodObject,
                                           String methodName,
                                           int numArguments)
      • isMethodCall

        public static boolean isMethodCall​(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall,
                                           String methodObject,
                                           String methodName,
                                           int numArguments)
      • isMethodCall

        public static boolean isMethodCall​(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall,
                                           String methodObject,
                                           String methodName)
      • isMethodNamed

        public static boolean isMethodNamed​(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall,
                                            String methodName)
      • getAnnotation

        public static org.codehaus.groovy.ast.AnnotationNode getAnnotation​(org.codehaus.groovy.ast.AnnotatedNode node,
                                                                           String name)
      • getVariableExpressions

        public static List getVariableExpressions​(org.codehaus.groovy.ast.expr.DeclarationExpression declarationExpression)
      • isFinalVariable

        public static boolean isFinalVariable​(org.codehaus.groovy.ast.expr.DeclarationExpression declarationExpression,
                                              SourceCode sourceCode)
      • isFromGeneratedSourceCode

        public static boolean isFromGeneratedSourceCode​(org.codehaus.groovy.ast.ASTNode node)