Package lombok.ast

Examples of lombok.ast.Cast


      expr.astParensPositions().add(getPosition(node));
      set(node, expr);
    }
   
    @Override public void visitTypeCast(JCTypeCast node) {
      Cast cast = new Cast();
      cast.rawOperand(toTree(node.getExpression()));
      cast.rawTypeReference(toTree(node.getType(), FlagKey.TYPE_REFERENCE));
      set(node, cast);
    }
View Full Code Here


 
  public Node createUnaryPrefixExpression(Node operand, org.parboiled.Node<Node> opNode, String symbol) {
    if (opNode == null) return operand;
   
    if (!opNode.getChildren().isEmpty() && "cast".equals(opNode.getChildren().get(0).getLabel())) {
      return posify(new Cast().rawOperand(operand).rawTypeReference(opNode.getValue()));
    } else {
      if (symbol != null) symbol = symbol.trim();
      if (!symbol.isEmpty()) {
        UnaryOperator op = UnaryOperator.fromSymbol(symbol, false);
        UnaryExpression expr = new UnaryExpression().rawOperand(operand);
View Full Code Here

    for (int i = operators.size() - 1; i >= 0; i--) {
      org.parboiled.Node<Node> operator = operators.get(i);
      Node prev = current;
      if (operator == null) continue;
      if (!operator.getChildren().isEmpty() && "cast".equals(operator.getChildren().get(0).getLabel())) {
        current = new Cast().rawOperand(current).rawTypeReference(operator.getValue());
      } else {
        String symbol = operatorTexts.get(i);
        if (symbol == null) continue;
        symbol = symbol.trim();
        if (symbol.isEmpty()) continue;
View Full Code Here

TOP

Related Classes of lombok.ast.Cast

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.