Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.SwitchStatement


    return r;
  }

  @Override
  public AstNode switchStatement(AstNode expr, Iterable<AstNode> cases) {
    SwitchStatement s = new SwitchStatement();
    s.setExpression(expr);
    for (AstNode c : cases) {
      // the user must make sure it sends the correct types. TODO the code can check and build the correct type if
      // needed
      s.addCase((SwitchCase) c);
    }
    return s;
  }
View Full Code Here

TOP

Related Classes of org.mozilla.javascript.ast.SwitchStatement

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.