Examples of astStarImport()


Examples of lombok.ast.ImportDeclaration.astStarImport()

  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);
  }
 
  public Node createCompilationUnit(Node packageDeclaration, List<Node> importDeclarations, List<Node> typeDeclarations) {
    CompilationUnit unit = new CompilationUnit().rawPackageDeclaration(packageDeclaration);
View Full Code Here

Examples of lombok.ast.ImportDeclaration.astStarImport()

      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
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.