Package lombok.ast

Examples of lombok.ast.ImportDeclaration


    if (tail != null) for (Node n : tail) if (n != null) decl.rawParts().addToEnd(n);
    return posify(decl);
  }
 
  public Node createImportDeclaration(String staticKeyword, Node head, List<Node> tail, String dotStar) {
    ImportDeclaration decl = new ImportDeclaration();
    if (head != null) decl.rawParts().addToEnd(head);
    if (tail != null) for (Node n : tail) decl.rawParts().addToEnd(n);
    if (staticKeyword != null && staticKeyword.length() > 0) decl.astStaticImport(true);
    if (dotStar != null && dotStar.length() > 0) decl.astStarImport(true);
    return posify(decl);
  }
View Full Code Here


      setConversionStructureInfo(unit, "converted");
      set(node, unit);
    }
   
    @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());
      set(node, imp);
    }
View Full Code Here

TOP

Related Classes of lombok.ast.ImportDeclaration

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.