Package lombok.ast

Examples of lombok.ast.Case


  public Node createSwitchStatement(Node condition, Node body) {
    return posify(new Switch().rawCondition(condition).rawBody(body));
  }
 
  public Node createCaseStatement(Node condition) {
    return posify(new Case().rawCondition(condition));
  }
View Full Code Here


      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()));
        else b.rawContents().addToEnd(setPos(c, new Case().rawCondition(toTree(rawExpr))));
        fillList(c.getStatements(), b.rawContents());
      }
      set(node, s);
    }
View Full Code Here

TOP

Related Classes of lombok.ast.Case

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.