public class JIfStatement extends JStatement
Constructor and Description |
---|
JIfStatement(SourceInfo info,
JExpression ifExpr,
JStatement thenStmt,
JStatement elseStmt) |
Modifier and Type | Method and Description |
---|---|
JStatement |
getElseStmt() |
JExpression |
getIfExpr() |
JStatement |
getThenStmt() |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
boolean |
unconditionalControlBreak() |
getSourceInfo, setSourceInfo, toSource, toString
public JIfStatement(SourceInfo info, JExpression ifExpr, JStatement thenStmt, JStatement elseStmt)
public JStatement getElseStmt()
public JExpression getIfExpr()
public JStatement getThenStmt()
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalpublic boolean unconditionalControlBreak()
unconditionalControlBreak
in class JStatement
Copyright © 2018. All rights reserved.