Package lombok.ast

Examples of lombok.ast.EmptyDeclaration


   
    return params;
  }
 
  public Node createEmptyDeclaration() {
    return posify(new EmptyDeclaration());
  }
View Full Code Here


        if ((node.flags & Flags.STATIC) != 0) {
          n = setPos(node, new StaticInitializer().astBody(b));
        } else {
          // For some strange reason, solitary ; in a type body are represented not as JCSkips, but as JCBlocks with no endpos. Don't ask me why!
          if (b.rawContents().isEmpty() && node.endpos == -1) {
            n = setPos(node, new EmptyDeclaration());
          } else {
            n = setPos(node, new InstanceInitializer().astBody(b));
          }
        }
      } else {
View Full Code Here

      set(node, n);
    }
   
    @Override public void visitSkip(JCSkip node) {
      if (hasFlag(FlagKey.SKIP_IS_DECL)) {
        set(node, new EmptyDeclaration());
      } else {
        set(node, new EmptyStatement());
      }
    }
View Full Code Here

TOP

Related Classes of lombok.ast.EmptyDeclaration

Copyright © 2018 www.massapicom. 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.