Class AbstractDeepBlockRewriter

    • Field Detail

      • block

        protected Block block
      • currTopLevelStat

        protected org.codehaus.groovy.ast.stmt.Statement currTopLevelStat
      • currExprStat

        protected org.codehaus.groovy.ast.stmt.ExpressionStatement currExprStat
      • currBinaryExpr

        protected org.codehaus.groovy.ast.expr.BinaryExpression currBinaryExpr
      • currMethodCallExpr

        protected org.codehaus.groovy.ast.expr.MethodCallExpression currMethodCallExpr
      • currClosure

        protected org.codehaus.groovy.ast.expr.ClosureExpression currClosure
      • lastSpecialMethodCallStat

        protected org.codehaus.groovy.ast.stmt.Statement lastSpecialMethodCallStat
      • conditionFound

        protected boolean conditionFound
      • interactionFound

        protected boolean interactionFound
      • foundExceptionCondition

        protected org.codehaus.groovy.ast.expr.MethodCallExpression foundExceptionCondition
      • thenBlockInteractionStats

        protected final java.util.List<org.codehaus.groovy.ast.stmt.Statement> thenBlockInteractionStats
    • Constructor Detail

      • AbstractDeepBlockRewriter

        public AbstractDeepBlockRewriter​(Block block)
    • Method Detail

      • isConditionFound

        public boolean isConditionFound()
      • isExceptionConditionFound

        public boolean isExceptionConditionFound()
      • getThenBlockInteractionStats

        public java.util.List<org.codehaus.groovy.ast.stmt.Statement> getThenBlockInteractionStats()
      • getFoundExceptionCondition

        public org.codehaus.groovy.ast.expr.MethodCallExpression getFoundExceptionCondition()
      • visit

        public void visit​(Block block)
      • visitExpressionStatement

        public final void visitExpressionStatement​(org.codehaus.groovy.ast.stmt.ExpressionStatement stat)
        Specified by:
        visitExpressionStatement in interface org.codehaus.groovy.ast.GroovyCodeVisitor
        Overrides:
        visitExpressionStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
      • visitBinaryExpression

        public final void visitBinaryExpression​(org.codehaus.groovy.ast.expr.BinaryExpression expr)
        Specified by:
        visitBinaryExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
        Overrides:
        visitBinaryExpression in class org.codehaus.groovy.ast.CodeVisitorSupport
      • visitMethodCallExpression

        public final void visitMethodCallExpression​(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
        Specified by:
        visitMethodCallExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
        Overrides:
        visitMethodCallExpression in class org.codehaus.groovy.ast.CodeVisitorSupport
      • visitClosureExpression

        public final void visitClosureExpression​(org.codehaus.groovy.ast.expr.ClosureExpression expr)
        Specified by:
        visitClosureExpression in interface org.codehaus.groovy.ast.GroovyCodeVisitor
        Overrides:
        visitClosureExpression in class org.codehaus.groovy.ast.CodeVisitorSupport
      • doVisitExpressionStatement

        protected void doVisitExpressionStatement​(org.codehaus.groovy.ast.stmt.ExpressionStatement stat)
      • doVisitBinaryExpression

        protected void doVisitBinaryExpression​(org.codehaus.groovy.ast.expr.BinaryExpression expr)
      • doVisitMethodCallExpression

        protected void doVisitMethodCallExpression​(org.codehaus.groovy.ast.expr.MethodCallExpression expr)
      • doVisitClosureExpression

        protected void doVisitClosureExpression​(org.codehaus.groovy.ast.expr.ClosureExpression expr)