Examples of rawImplementing()


Examples of lombok.ast.ClassDeclaration.rawImplementing()

      }
     
      if (n instanceof TemporaryNode.ImplementsClause) {
        //if (!decl.implementing().isEmpty()) //TODO add error node: multiple implements clauses.
        List<Node> interfaces = ((TemporaryNode.ImplementsClause)n).superInterfaces;
        if (interfaces != null) for (Node i : interfaces) decl.rawImplementing().addToEnd(i);
      }
    }
    return posify(decl);
  }
 
View Full Code Here

Examples of lombok.ast.ClassDeclaration.rawImplementing()

      flagKeyMap.put(FlagKey.SKIP_IS_DECL, FlagKey.SKIP_IS_DECL);
     
      if ((flags & (Flags.ENUM | Flags.INTERFACE)) == 0) {
        ClassDeclaration classDecl = new ClassDeclaration();
        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);
View Full Code Here

Examples of lombok.ast.EnumDeclaration.rawImplementing()

    if (addons != null) for (Node n : addons) {
      //if (n instanceof ExtendsClause) //TODO add error node: implements not allowed here.
      if (n instanceof TemporaryNode.ImplementsClause) {
        //if (!decl.implementing().isEmpty()) //TODO add error node: multiple implements clauses.
        List<Node> interfaces = ((TemporaryNode.ImplementsClause)n).superInterfaces;
        if (interfaces != null) for (Node i : interfaces) decl.rawImplementing().addToEnd(i);
      }
    }
    return posify(decl);
  }
 
View Full Code Here

Examples of lombok.ast.EnumDeclaration.rawImplementing()

        itfDecl.astBody(body);
      } else if ((flags & Flags.ENUM) != 0) {
        EnumDeclaration enumDecl = new EnumDeclaration();
        typeDecl = enumDecl;
        EnumTypeBody body = new EnumTypeBody();
        fillList(node.implementing, enumDecl.rawImplementing(), FlagKey.TYPE_REFERENCE);
        java.util.List<JCTree> defs = new ArrayList<JCTree>();
       
        for (JCTree def : node.defs) {
          if (def instanceof JCVariableDecl) {
            JCVariableDecl vd = (JCVariableDecl) 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.