public class JsCatch extends JsNode implements HasCondition
Modifier and Type | Field and Description |
---|---|
protected JsCatchScope |
scope |
Constructor and Description |
---|
JsCatch(SourceInfo sourceInfo,
JsScope parent,
String ident) |
Modifier and Type | Method and Description |
---|---|
JsBlock |
getBody() |
JsExpression |
getCondition() |
NodeKind |
getKind() |
JsParameter |
getParameter() |
JsScope |
getScope() |
void |
setBody(JsBlock body) |
void |
setCondition(JsExpression condition) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
getSourceInfo, setSourceInfo, toSource, toSource, toString
protected final JsCatchScope scope
public JsCatch(SourceInfo sourceInfo, JsScope parent, String ident)
public JsBlock getBody()
public JsExpression getCondition()
getCondition
in interface HasCondition
public JsParameter getParameter()
public JsScope getScope()
public void setBody(JsBlock body)
public void setCondition(JsExpression condition)
setCondition
in interface HasCondition
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
traverse
in interface JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.