Package lombok.ast

Examples of lombok.ast.BinaryExpression


      expr.astOperator(JcTreeBuilder.UNARY_OPERATORS.inverse().get(getTag(node)));
      set(node, expr);
    }
   
    @Override public void visitBinary(JCBinary node) {
      BinaryExpression expr = new BinaryExpression();
      expr.rawLeft(toTree(node.getLeftOperand()));
      expr.rawRight(toTree(node.getRightOperand()));
      expr.astOperator(JcTreeBuilder.BINARY_OPERATORS.inverse().get(getTag(node)));
      set(node, expr);
    }
View Full Code Here


      iie.rawIfFalse(toTree(node.getFalseExpression()));
      set(node, iie);
    }
   
    @Override public void visitAssign(JCAssign node) {
      BinaryExpression expr = new BinaryExpression();
      expr.rawRight(toTree(node.getExpression()));
      expr.rawLeft(toTree(node.getVariable()));
      expr.astOperator(BinaryOperator.ASSIGN);
      set(node, expr);
    }
View Full Code Here

      expr.astOperator(BinaryOperator.ASSIGN);
      set(node, expr);
    }
   
    @Override public void visitAssignop(JCAssignOp node) {
      BinaryExpression expr = new BinaryExpression();
      expr.rawRight(toTree(node.getExpression()));
      expr.rawLeft(toTree(node.getVariable()));
      expr.astOperator(JcTreeBuilder.BINARY_OPERATORS.inverse().get(getTag(node)));
      set(node, expr);
    }
View Full Code Here

      List<org.parboiled.Node<Node>> tail) {
   
    Node currentLeft = head.getValue();
   
    for (int i = 0; i < operators.size(); i++) {
      currentLeft = new BinaryExpression()
          .rawLeft(currentLeft)
          .rawRight(tail.get(i).getValue()).rawOperator(operators.get(i));
      source.registerStructure(currentLeft, operatorsNodes.get(i));
      positionSpan(currentLeft, head, tail.get(i));
    }
View Full Code Here

    return currentLeft;
  }
 
  public Node createAssignmentExpression(Node lhs, String operator, Node rhs) {
    if (rhs == null && operator == null) return lhs;
    return posify(new BinaryExpression().rawLeft(lhs).rawRight(rhs).rawOperator(operator));
  }
View Full Code Here

TOP

Related Classes of lombok.ast.BinaryExpression

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.