Package lombok.ast

Examples of lombok.ast.Statement


  }
 
  public void checkSwitchStartsWithDefaultOrCase(Switch node) {
    Block body = node.astBody();
    if (body != null) {
      Statement first = body.astContents().first();
      if (first != null && !(first instanceof Case) && !(first instanceof Default)) {
        node.addMessage(error(SWITCH_DOES_NOT_START_WITH_CASE, "switch statements should start with a default or case statement."));
      }
    }
  }
View Full Code Here

TOP

Related Classes of lombok.ast.Statement

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.