Package lombok.ast

Examples of lombok.ast.ArrayInitializer


                            if (value.equalsIgnoreCase(SUPPRESS_ALL) ||
                                    issue != null && issue.getId().equalsIgnoreCase(value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
                            ArrayInitializer array = (ArrayInitializer) valueNode;
                            StrictListAccessor<Expression, ArrayInitializer> expressions =
                                    array.astExpressions();
                            if (expressions == null) {
                                continue;
                            }
                            Iterator<Expression> arrayIterator = expressions.iterator();
                            while (arrayIterator.hasNext()) {
View Full Code Here


                            if (value.equalsIgnoreCase(SUPPRESS_ALL) ||
                                    issue != null && issue.getId().equalsIgnoreCase(value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
                            ArrayInitializer array = (ArrayInitializer) valueNode;
                            StrictListAccessor<Expression, ArrayInitializer> expressions =
                                    array.astExpressions();
                            if (expressions == null) {
                                continue;
                            }
                            Iterator<Expression> arrayIterator = expressions.iterator();
                            while (arrayIterator.hasNext()) {
View Full Code Here

    if (tail != null) for (Node n : tail) if (n != null) result.rawVariables().addToEnd(n);
    return posify(result);
  }
 
  public Node createAnnotationElementValueArrayInitializer(Node head, List<Node> tail) {
    ArrayInitializer result = new ArrayInitializer();
    if (head != null) result.rawExpressions().addToEnd(head);
    if (tail != null) for (Node n : tail) if (n != null) result.rawExpressions().addToEnd(n);
    return posify(result);
  }
View Full Code Here

      fillList(node.getArguments(), inv.rawArguments());
      set(node, inv);
    }
   
    @Override public void visitNewArray(JCNewArray node) {
      ArrayInitializer init = null;
     
      if (node.getInitializers() != null) {
        init = setPos(node, new ArrayInitializer());
        fillList(node.getInitializers(), init.rawExpressions());
      }
     
      if (node.getType() == null) {
        set(node, init == null ? new ArrayInitializer() : init);
        return;
      }
     
      ArrayCreation crea = new ArrayCreation();
      JCTree type = node.getType();
View Full Code Here

   
    return posify(result);
  }
 
  public Node createArrayInitializerExpression(Node head, List<Node> tail) {
    ArrayInitializer ai = new ArrayInitializer();
    if (head != null) ai.rawExpressions().addToEnd(head);
    if (tail != null) for (Node n : tail) if (n != null) ai.rawExpressions().addToEnd(n);
    return posify(ai);
  }
View Full Code Here

                            String value = literal.astValue();
                            if (matches(issue, value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
                            ArrayInitializer array = (ArrayInitializer) valueNode;
                            StrictListAccessor<Expression, ArrayInitializer> expressions =
                                    array.astExpressions();
                            if (expressions == null) {
                                continue;
                            }
                            for (Expression arrayElement : expressions) {
                                if (arrayElement instanceof StringLiteral) {
View Full Code Here

TOP

Related Classes of lombok.ast.ArrayInitializer

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.