| Modifier and Type | Field and Description |
|---|---|
static Role<Expression> |
CONDITION_ROLE |
static TokenRole |
ELSE_KEYWORD_ROLE |
static Role<Statement> |
FALSE_ROLE |
static TokenRole |
IF_KEYWORD_ROLE |
static Role<Statement> |
TRUE_ROLE |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
IfElseStatement(int offset,
Expression condition,
Statement trueStatement) |
IfElseStatement(int offset,
Expression condition,
Statement trueStatement,
Statement falseStatement) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
Expression |
getCondition() |
JavaTokenNode |
getElseToken() |
Statement |
getFalseStatement() |
JavaTokenNode |
getIfToken() |
JavaTokenNode |
getLeftParenthesisToken() |
JavaTokenNode |
getRightParenthesisToken() |
Statement |
getTrueStatement() |
boolean |
matches(INode other,
Match match) |
void |
setCondition(Expression value) |
void |
setFalseStatement(Statement value) |
void |
setTrueStatement(Statement value) |
clone, forPattern, getNextStatement, getNodeType, getOffset, getPreviousStatement, isEmbeddableaddChild, contains, contains, copyUserDataFrom, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final TokenRole IF_KEYWORD_ROLE
public static final TokenRole ELSE_KEYWORD_ROLE
public static final Role<Expression> CONDITION_ROLE
public IfElseStatement(int offset,
Expression condition,
Statement trueStatement)
public IfElseStatement(int offset,
Expression condition,
Statement trueStatement,
Statement falseStatement)
public final JavaTokenNode getIfToken()
public final JavaTokenNode getElseToken()
public final JavaTokenNode getLeftParenthesisToken()
public final JavaTokenNode getRightParenthesisToken()
public final Expression getCondition()
public final void setCondition(Expression value)
public final Statement getTrueStatement()
public final void setTrueStatement(Statement value)
public final Statement getFalseStatement()
public final void setFalseStatement(Statement value)
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode