public final class JsIf extends JsStatement
Constructor and Description |
---|
JsIf(SourceInfo sourceInfo) |
JsIf(SourceInfo sourceInfo,
JsExpression ifExpr,
JsStatement thenStmt,
JsStatement elseStmt) |
Modifier and Type | Method and Description |
---|---|
JsStatement |
getElseStmt() |
JsExpression |
getIfExpr() |
NodeKind |
getKind() |
JsStatement |
getThenStmt() |
void |
setElseStmt(JsStatement elseStmt) |
void |
setIfExpr(JsExpression ifExpr) |
void |
setThenStmt(JsStatement thenStmt) |
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 JsIf(SourceInfo sourceInfo)
public JsIf(SourceInfo sourceInfo, JsExpression ifExpr, JsStatement thenStmt, JsStatement elseStmt)
public JsStatement getElseStmt()
public JsExpression getIfExpr()
public JsStatement getThenStmt()
public void setElseStmt(JsStatement elseStmt)
public void setIfExpr(JsExpression ifExpr)
public void setThenStmt(JsStatement thenStmt)
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.