Examples of rawMembers()


Examples of lombok.ast.EnumTypeBody.rawMembers()

  public Node createEnumBody(Node head, List<Node> tail, Node typeBody) {
    EnumTypeBody body = new EnumTypeBody();
    if (head != null) body.rawConstants().addToEnd(head);
    if (tail != null) for (Node n : tail) body.rawConstants().addToEnd(n);
    if (typeBody instanceof TypeBody) {
      body.rawMembers().migrateAllFrom(((TypeBody)typeBody).rawMembers());
    }
    return posify(body);
  }
 
  public Node createEnumDeclaration(Node modifiers, Node name, Node body, List<Node> addons) {
View Full Code Here

Examples of lombok.ast.EnumTypeBody.rawMembers()

            }
          }
         
          defs.add(def);
        }
        fillList(defs, body.rawMembers(), flagKeyMap);
        enumDecl.astBody(body);
      } else {
        throw new IllegalStateException("Unknown type declaration: " + node);
      }
     
View Full Code Here

Examples of lombok.ast.NormalTypeBody.rawMembers()

    return posify(decl);
  }
 
  public Node createNormalTypeBody(List<Node> values) {
    NormalTypeBody body = new NormalTypeBody();
    if (values != null) for (Node n : values) body.rawMembers().addToEnd(n);
    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);
View Full Code Here

Examples of lombok.ast.NormalTypeBody.rawMembers()

        typeDecl = classDecl;
        fillList(node.implementing, classDecl.rawImplementing(), FlagKey.TYPE_REFERENCE);
        classDecl.rawExtending(toTree(node.extending, FlagKey.TYPE_REFERENCE));
        fillList(node.typarams, classDecl.rawTypeVariables());
        NormalTypeBody body = new NormalTypeBody();
        fillList(node.defs, body.rawMembers(), flagKeyMap);
        classDecl.astBody(body);
      } else if ((flags & Flags.ANNOTATION) != 0) {
        AnnotationDeclaration annDecl = new AnnotationDeclaration();
        typeDecl = annDecl;
        NormalTypeBody body = new NormalTypeBody();
View Full Code Here

Examples of lombok.ast.NormalTypeBody.rawMembers()

      } else if ((flags & Flags.ANNOTATION) != 0) {
        AnnotationDeclaration annDecl = new AnnotationDeclaration();
        typeDecl = annDecl;
        NormalTypeBody body = new NormalTypeBody();
        flagKeyMap.put(FlagKey.METHODS_ARE_ANNMETHODS, FlagKey.METHODS_ARE_ANNMETHODS);
        fillList(node.defs, body.rawMembers(), flagKeyMap);
        annDecl.astBody(body);
      } else if ((flags & Flags.INTERFACE) != 0) {
        InterfaceDeclaration itfDecl = new InterfaceDeclaration();
        typeDecl = itfDecl;
        fillList(node.typarams, itfDecl.rawTypeVariables());
View Full Code Here

Examples of lombok.ast.NormalTypeBody.rawMembers()

        InterfaceDeclaration itfDecl = new InterfaceDeclaration();
        typeDecl = itfDecl;
        fillList(node.typarams, itfDecl.rawTypeVariables());
        fillList(node.implementing, itfDecl.rawExtending(), FlagKey.TYPE_REFERENCE);
        NormalTypeBody body = new NormalTypeBody();
        fillList(node.defs, body.rawMembers(), flagKeyMap);
        itfDecl.astBody(body);
      } else if ((flags & Flags.ENUM) != 0) {
        EnumDeclaration enumDecl = new EnumDeclaration();
        typeDecl = enumDecl;
        EnumTypeBody body = new EnumTypeBody();
View Full Code Here

Examples of lombok.ast.NormalTypeBody.rawMembers()

              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());
                  fillList(init.getClassBody().getMembers(), constantBody.rawMembers());
                  ec.astBody(constantBody);
                }
                setConversionPositionInfo(ec, "newClass", getPosition(init));
              }
              body.astConstants().addToEnd(ec);
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.