public final class IfStmt extends Statement
| Constructor and Description |
|---|
IfStmt() |
IfStmt(Expression condition,
Statement thenStmt,
Statement elseStmt) |
IfStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression condition,
Statement thenStmt,
Statement elseStmt) |
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
IfStmt |
clone() |
List<Node> |
getChildren() |
Expression |
getCondition() |
Statement |
getElseStmt() |
Statement |
getThenStmt() |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setCondition(Expression condition) |
void |
setElseStmt(Statement elseStmt) |
void |
setThenStmt(Statement thenStmt) |
getSymbolData, setSymbolDatacheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic IfStmt()
public IfStmt(Expression condition, Statement thenStmt, Statement elseStmt)
public IfStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression condition,
Statement thenStmt,
Statement elseStmt)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Statementpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Expression getCondition()
public Statement getElseStmt()
public Statement getThenStmt()
public void setCondition(Expression condition)
public void setElseStmt(Statement elseStmt)
public void setThenStmt(Statement thenStmt)
public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic IfStmt clone() throws CloneNotSupportedException
clone in class StatementCloneNotSupportedExceptionCopyright © 2018. All rights reserved.