Examples of rawAnnotations()


Examples of lombok.ast.EnumConstant.rawAnnotations()

    return posify(body);
  }
 
  public Node createEnumConstant(List<Node> annotations, Node name, Node arguments, Node body) {
    EnumConstant result = new EnumConstant().astName(createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (annotations != null) for (Node n : annotations) if (n != null) result.rawAnnotations().addToEnd(n);
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
        result.rawArguments().addToEnd(arg);
      }
    }
View Full Code Here

Examples of lombok.ast.EnumConstant.rawAnnotations()

            if (vd.mods != null && (vd.mods.flags & ENUM_CONSTANT_FLAGS) == ENUM_CONSTANT_FLAGS) {
              // This is an enum constant, not a field of the enum class.
              EnumConstant ec = new EnumConstant();
              setPos(def, ec);
              ec.astName(new Identifier().astValue(vd.getName().toString()));
              fillList(vd.mods.annotations, ec.rawAnnotations());
              if (vd.init instanceof JCNewClass) {
                JCNewClass init = (JCNewClass) vd.init;
                fillList(init.getArguments(), ec.rawArguments());
                if (init.getClassBody() != null) {
                  NormalTypeBody constantBody = setPos(init, new NormalTypeBody());
View Full Code Here

Examples of lombok.ast.Modifiers.rawAnnotations()

  }
 
  public Node createModifiers(List<Node> values) {
    Modifiers result = new Modifiers();
    if (values != null) for (Node n : values) {
      if (n instanceof Annotation) result.rawAnnotations().addToEnd(n);
      if (n instanceof KeywordModifier) result.rawKeywords().addToEnd(n);
    }
    return posify(result);
  }
 
View Full Code Here

Examples of lombok.ast.Modifiers.rawAnnotations()

      set(node, typeDecl);
    }
   
    @Override public void visitModifiers(JCModifiers node) {
      Modifiers m = new Modifiers();
      fillList(node.annotations, m.rawAnnotations());
      for (KeywordModifier mod : KeywordModifier.fromReflectModifiers((int) node.flags)) m.astKeywords().addToEnd(mod);
      setConversionStructureInfo(m, "converted");
      set(node, m);
    }
   
View Full Code Here

Examples of lombok.ast.PackageDeclaration.rawAnnotations()

    return posify(decl);
  }
 
  public Node createPackageDeclaration(List<Node> annotations, Node head, List<Node> tail) {
    PackageDeclaration decl = new PackageDeclaration();
    if (annotations != null) for (Node n : annotations) if (n != null) decl.rawAnnotations().addToEnd(n);
    if (head != null) decl.rawParts().addToEnd(head);
    if (tail != null) for (Node n : tail) if (n != null) decl.rawParts().addToEnd(n);
    return posify(decl);
  }
 
View Full Code Here

Examples of lombok.ast.PackageDeclaration.rawAnnotations()

      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) {
        if (def instanceof JCImport) {
          unit.rawImportDeclarations().addToEnd(toTree(def));
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.