Package lombok.ast

Examples of lombok.ast.ClassDeclaration.rawExtending()


        //if (!decl.implementing().isEmpty()) //TODO add error node: implements must come after extends
        //if (!decl.extending().isEmpty()) //TODO add error node: multiple extends clauses.
        List<Node> superClasses = ((TemporaryNode.ExtendsClause)n).superTypes;
        if (superClasses != null && superClasses.size() > 0) {
          //if (superClasses.size() > 1) //TODO add error node: 'extends' on class can only accept 1 type.
          decl.rawExtending(superClasses.get(0));
        }
      }
     
      if (n instanceof TemporaryNode.ImplementsClause) {
        //if (!decl.implementing().isEmpty()) //TODO add error node: multiple implements clauses.
View Full Code Here


     
      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);
      } else if ((flags & Flags.ANNOTATION) != 0) {
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.