Package lombok.ast

Examples of lombok.ast.DoWhile


  public Node createWhileStatement(Node condition, Node statement) {
    return posify(new While().rawCondition(condition).rawStatement(statement));
  }
 
  public Node createDoStatement(Node condition, Node statement) {
    return posify(new DoWhile().rawCondition(condition).rawStatement(statement));
  }
View Full Code Here


    @Override public void visitAssert(JCAssert node) {
      set(node, new Assert().rawAssertion(toTree(node.getCondition())).rawMessage(toTree(node.getDetail())));
    }
   
    @Override public void visitDoLoop(JCDoWhileLoop node) {
      DoWhile dw = new DoWhile();
      JCExpression cond = node.getCondition();
      setConversionPositionInfo(dw, "()", getPosition(cond));
      set(node, dw.rawCondition(toTree(removeParens(cond))).rawStatement(toTree(node.getStatement())));
    }
View Full Code Here

TOP

Related Classes of lombok.ast.DoWhile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.