Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.CatchClause


    return s;
  }

  @Override
  public AstNode catchClause(AstNode varName, AstNode body) {
    CatchClause c = new CatchClause();
    c.setVarName(cast(varName, Name.class));
    if (body instanceof Block) {
      c.setBody((Block) body);
    } else {
      Block b = new Block();
      b.addStatement(body);
      c.setBody(b);
    }
    return c;
  }
View Full Code Here

TOP

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

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.