public class ConditionalExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
COLON_ROLE |
static Role<Expression> |
CONDITION_ROLE |
static Role<Expression> |
FALSE_ROLE |
static TokenRole |
QUESTION_MARK_ROLE |
static Role<Expression> |
TRUE_ROLE |
MYSTERY_OFFSET, NULLAST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
ConditionalExpression(Expression condition,
Expression trueExpression,
Expression falseExpression) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
JavaTokenNode |
getColonToken() |
Expression |
getCondition() |
Expression |
getFalseExpression() |
JavaTokenNode |
getQuestionMark() |
Expression |
getTrueExpression() |
boolean |
matches(INode other,
Match match) |
void |
setCondition(Expression value) |
void |
setFalseExpression(Expression value) |
void |
setTrueExpression(Expression value) |
clone, forPattern, getNodeType, getOffset, invoke, invoke, invoke, invoke, invoke, invoke, member, setOffsetaddChild, 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 Role<Expression> CONDITION_ROLE
public static final TokenRole QUESTION_MARK_ROLE
public static final Role<Expression> TRUE_ROLE
public static final TokenRole COLON_ROLE
public static final Role<Expression> FALSE_ROLE
public ConditionalExpression(Expression condition, Expression trueExpression, Expression falseExpression)
public final JavaTokenNode getQuestionMark()
public final JavaTokenNode getColonToken()
public final Expression getCondition()
public final void setCondition(Expression value)
public final Expression getTrueExpression()
public final void setTrueExpression(Expression value)
public final Expression getFalseExpression()
public final void setFalseExpression(Expression value)
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode