public class JsThrow extends JsStatement
throw
statement.Constructor and Description |
---|
JsThrow(SourceInfo sourceInfo) |
JsThrow(SourceInfo sourceInfo,
JsExpression expr) |
Modifier and Type | Method and Description |
---|---|
JsExpression |
getExpr() |
NodeKind |
getKind() |
void |
setExpr(JsExpression expr) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
boolean |
unconditionalControlBreak()
Returns true if this statement definitely causes an abrupt change in flow control.
|
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsThrow(SourceInfo sourceInfo)
public JsThrow(SourceInfo sourceInfo, JsExpression expr)
public JsExpression getExpr()
public void setExpr(JsExpression expr)
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalpublic boolean unconditionalControlBreak()
JsStatement
unconditionalControlBreak
in class JsStatement
Copyright © 2018. All rights reserved.