public class CaseNode extends Node
case constant:
| Modifier and Type | Field and Description | 
|---|---|
protected List<Node> | 
caseExprs
The case expressions to match the switch expression against: the operands of (possibly
 multiple) case labels. 
 | 
protected AssignmentNode | 
selectorExprAssignment
The Node for the assignment of the switch selector expression to a synthetic local variable. 
 | 
protected CaseTree | 
tree
The tree for this node. 
 | 
| Constructor and Description | 
|---|
CaseNode(CaseTree tree,
        AssignmentNode selectorExprAssignment,
        List<Node> caseExprs,
        Types types)
Create a new CaseNode. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<R,P> R | 
accept(NodeVisitor<R,P> visitor,
      P p)
Accept method of the visitor pattern. 
 | 
boolean | 
equals(@Nullable Object obj)  | 
List<Node> | 
getCaseOperands()
Gets the nodes corresponding to the case expressions. 
 | 
Collection<Node> | 
getOperands()
 | 
AssignmentNode | 
getSwitchOperand()
The Node for the assignment of the switch selector expression to a synthetic local variable. 
 | 
CaseTree | 
getTree()
Returns the  
Tree in the abstract syntax tree, or null if no corresponding tree
 exists. | 
int | 
hashCode()  | 
String | 
toString()  | 
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugprotected final CaseTree tree
protected final AssignmentNode selectorExprAssignment
public CaseNode(CaseTree tree, AssignmentNode selectorExprAssignment, List<Node> caseExprs, Types types)
tree - the tree for this nodeselectorExprAssignment - the switch expressioncaseExprs - the case expression(s) to match the switch expression againsttypes - a factory of utility methods for operating on typespublic AssignmentNode getSwitchOperand()
public List<Node> getCaseOperands()
public CaseTree getTree()
NodeTree in the abstract syntax tree, or null if no corresponding tree
 exists. For instance, this is the case for an ImplicitThisNode.public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Nodepublic Collection<Node> getOperands()
NodegetOperands in class NodeNodes of this Node