| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
SWITCH_KEYWORD_ROLE |
static Role<SwitchSection> |
SWITCH_SECTION_ROLE |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
SwitchStatement(Expression testExpression) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
Expression |
getExpression() |
JavaTokenNode |
getLeftBraceToken() |
JavaTokenNode |
getLeftParenthesisToken() |
JavaTokenNode |
getReturnToken() |
JavaTokenNode |
getRightBraceToken() |
JavaTokenNode |
getRightParenthesisToken() |
AstNodeCollection<SwitchSection> |
getSwitchSections() |
boolean |
matches(INode other,
Match match) |
void |
setExpression(Expression 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 SWITCH_KEYWORD_ROLE
public static final Role<SwitchSection> SWITCH_SECTION_ROLE
public SwitchStatement(Expression testExpression)
public final JavaTokenNode getReturnToken()
public final Expression getExpression()
public final void setExpression(Expression value)
public final JavaTokenNode getLeftParenthesisToken()
public final JavaTokenNode getRightParenthesisToken()
public final JavaTokenNode getLeftBraceToken()
public final AstNodeCollection<SwitchSection> getSwitchSections()
public final JavaTokenNode getRightBraceToken()
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode