Examples of rawCondition()


Examples of lombok.ast.DoWhile.rawCondition()

   
    @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())));
    }
   
    @Override public void visitContinue(JCContinue node) {
      Continue c = new Continue();
      if (node.getLabel() != null) {
View Full Code Here

Examples of lombok.ast.For.rawCondition()

      set(node, new LabelledStatement().rawStatement(toTree(node.getStatement())).astLabel(lbl));
    }
   
    @Override public void visitForLoop(JCForLoop node) {
      For f = new For();
      f.rawCondition(toTree(node.getCondition()));
      f.rawStatement(toTree(node.getStatement()));
      for (JCExpressionStatement upd : node.getUpdate()) {
        Node updateNode = toTree(upd.getExpression());
        setConversionPositionInfo(updateNode, "exec", getPosition(upd));
        f.rawUpdates().addToEnd(updateNode);
View Full Code Here

Examples of lombok.ast.If.rawCondition()

   
    @Override public void visitIf(JCIf node) {
      If i = new If();
      JCExpression cond = node.getCondition();
      setConversionPositionInfo(i, "()", getPosition(cond));
      i.rawCondition(toTree(removeParens(cond)));
      i.rawStatement(toTree(node.getThenStatement()));
      i.rawElseStatement(toTree(node.getElseStatement()));
      set(node, i);
    }
   
View Full Code Here

Examples of lombok.ast.InlineIfExpression.rawCondition()

      set(node, io);
    }
   
    @Override public void visitConditional(JCConditional node) {
      InlineIfExpression iie = new InlineIfExpression();
      iie.rawCondition(toTree(node.getCondition()));
      iie.rawIfTrue(toTree(node.getTrueExpression()));
      iie.rawIfFalse(toTree(node.getFalseExpression()));
      set(node, iie);
    }
   
View Full Code Here

Examples of lombok.ast.Switch.rawCondition()

   
    @Override public void visitSwitch(JCSwitch node) {
      Switch s = new Switch();
      JCExpression cond = node.getExpression();
      setConversionPositionInfo(s, "()", getPosition(cond));
      s.rawCondition(toTree(removeParens(cond)));
      Block b = new Block();
      s.astBody(b);
      for (JCCase c : node.getCases()) {
        JCExpression rawExpr = c.getExpression();
        if (rawExpr == null) b.rawContents().addToEnd(setPos(c, new Default()));
View Full Code Here

Examples of lombok.ast.While.rawCondition()

   
    @Override public void visitWhileLoop(JCWhileLoop node) {
      While w = new While();
      JCExpression cond = node.getCondition();
      setConversionPositionInfo(w, "()", getPosition(cond));
      set(node, w.rawCondition(toTree(removeParens(cond))).rawStatement(toTree(node.getStatement())));
    }
   
    @Override public void visitReturn(JCReturn node) {
      set(node, new Return().rawValue(toTree(node.getExpression())));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.