Examples of astParts()


Examples of lombok.ast.ImportDeclaration.astParts()

      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());
View Full Code Here

Examples of lombok.ast.ImportDeclaration.astParts()

    }
   
    @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());
      }
View Full Code Here

Examples of lombok.ast.ImportDeclaration.astParts()

    @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

Examples of lombok.ast.PackageDeclaration.astParts()

   
    @Override public void visitTopLevel(JCCompilationUnit node) {
      CompilationUnit unit = new CompilationUnit();
      if (node.pid != null) {
        PackageDeclaration pkg = new PackageDeclaration();
        fillWithIdentifiers(node.pid, pkg.astParts());
        unit.astPackageDeclaration(setPos(node.pid, pkg));
        fillList(node.packageAnnotations, pkg.rawAnnotations());
      }
     
      for (JCTree def : node.defs) {
View Full Code Here

Examples of lombok.ast.TypeReference.astParts()

      Identifier id = setPos(node, new Identifier().astValue(name));
      Node selected = toTree(node.selected, params);
     
      if (hasFlag(FlagKey.TYPE_REFERENCE)) {
        TypeReference parent = (TypeReference) selected;
        parent.astParts().addToEnd(setPos(node, new TypeReferencePart().astIdentifier(id)));
        set(node, parent);
        return;
      }
     
      if ("this".equals(name)) {
View Full Code Here

Examples of lombok.ast.TypeReference.astParts()

      set(node, new Select().astIdentifier(id).rawOperand(toTree(node.getExpression())));
    }
   
    @Override public void visitTypeApply(JCTypeApply node) {
      TypeReference ref = (TypeReference) toTree(node.clazz, FlagKey.TYPE_REFERENCE);
      TypeReferencePart last = ref.astParts().last();
      fillList(node.arguments, last.rawTypeArguments(), FlagKey.TYPE_REFERENCE);
      setPos(node, ref);
      setConversionPositionInfo(last, "<", getPosition(node));
      set(node, ref);
    }
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.