Examples of astValue()


Examples of lombok.ast.AnnotationElement.astValue()

                        annotation.astElements();
                if (values != null) {
                    Iterator<AnnotationElement> valueIterator = values.iterator();
                    while (valueIterator.hasNext()) {
                        AnnotationElement element = valueIterator.next();
                        AnnotationValue valueNode = element.astValue();
                        if (valueNode == null) {
                            continue;
                        }
                        if (valueNode instanceof StringLiteral) {
                            StringLiteral literal = (StringLiteral) valueNode;
View Full Code Here

Examples of lombok.ast.AnnotationElement.astValue()

                        annotation.astElements();
                if (values != null) {
                    Iterator<AnnotationElement> valueIterator = values.iterator();
                    while (valueIterator.hasNext()) {
                        AnnotationElement element = valueIterator.next();
                        AnnotationValue valueNode = element.astValue();
                        if (valueNode == null) {
                            continue;
                        }
                        if (valueNode instanceof StringLiteral) {
                            StringLiteral literal = (StringLiteral) valueNode;
View Full Code Here

Examples of lombok.ast.Identifier.astValue()

    super(source);
  }
 
  public Node createIdentifier(String text, org.parboiled.Node<Node> rawIdentifier) {
    Identifier id = new Identifier();
    if (text != null) id.astValue(text);
   
    int start = rawIdentifier.getStartIndex();
    int end = Math.max(start, rawIdentifier.getEndIndex());
    id.setPosition(new Position(start, end));
    return id;
View Full Code Here

Examples of lombok.ast.Identifier.astValue()

   
    @Override public void visitImport(JCImport node) {
      ImportDeclaration imp = new ImportDeclaration();
      fillWithIdentifiers(node.getQualifiedIdentifier(), imp.astParts());
      Identifier last = imp.astParts().last();
      if (last != null && "*".equals(last.astValue())) {
        imp.astParts().remove(last);
        imp.astStarImport(true);
        setConversionPositionInfo(imp, ".*", last.getPosition());
      }
      imp.astStaticImport(node.isStatic());
View Full Code Here

Examples of lombok.ast.Identifier.astValue()

          set(node, sci);
          setConversionPositionInfo(sci, "super", getPosition(sel));
          return;
        }
       
        setPos(sel, id.astValue(name));
        sel = null;
      } else if (sel instanceof JCFieldAccess) {
        String name = ((JCFieldAccess) sel).getIdentifier().toString();
        if ("super".equals(name)) {
          SuperConstructorInvocation sci = new SuperConstructorInvocation();
View Full Code Here

Examples of lombok.ast.Identifier.astValue()

          sci.rawQualifier(toTree(((JCFieldAccess) sel).getExpression()));
          set(node, sci);
          setConversionPositionInfo(sci, "super", getPosition(sel));
          return;
        }
        setPos(sel, id.astValue(name));
        sel = ((JCFieldAccess) sel).getExpression();
      }
      inv.astName(id).rawOperand(toTree(sel));
      fillList(node.getTypeArguments(), inv.rawMethodTypeArguments(), FlagKey.TYPE_REFERENCE);
      fillList(node.getArguments(), inv.rawArguments());
View Full Code Here

Examples of lombok.ast.StringLiteral.astValue()

                        if (valueNode == null) {
                            continue;
                        }
                        if (valueNode instanceof StringLiteral) {
                            StringLiteral literal = (StringLiteral) valueNode;
                            String value = literal.astValue();
                            if (value.equalsIgnoreCase(SUPPRESS_ALL) ||
                                    issue != null && issue.getId().equalsIgnoreCase(value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
View Full Code Here

Examples of lombok.ast.StringLiteral.astValue()

                        if (valueNode == null) {
                            continue;
                        }
                        if (valueNode instanceof StringLiteral) {
                            StringLiteral literal = (StringLiteral) valueNode;
                            String value = literal.astValue();
                            if (value.equalsIgnoreCase(SUPPRESS_ALL) ||
                                    issue != null && issue.getId().equalsIgnoreCase(value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
View Full Code Here

Examples of lombok.ast.StringLiteral.astValue()

                        if (valueNode == null) {
                            continue;
                        }
                        if (valueNode instanceof StringLiteral) {
                            StringLiteral literal = (StringLiteral) valueNode;
                            String value = literal.astValue();
                            if (matches(issue, value)) {
                                return true;
                            }
                        } else if (valueNode instanceof ArrayInitializer) {
                            ArrayInitializer array = (ArrayInitializer) valueNode;
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.