public class WhenNode extends Node
Modifier and Type | Field and Description |
---|---|
protected Node |
bodyNode |
protected Node |
expressionNodes |
Constructor and Description |
---|
WhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
Node |
getBodyNode()
Gets the bodyNode.
|
Node |
getExpressionNodes()
Get the expressionNode(s).
|
Node |
getNextCase()
Gets the next case node (if any).
|
NodeType |
getNodeType() |
createList, createList, createList, createList, findFirstChild, getNodeName, getPosition, isNil, needsDefinitionCheck, setPosition, toString, toString
protected final Node expressionNodes
protected final Node bodyNode
public WhenNode(ISourcePosition position, Node expressionNodes, Node bodyNode, Node nextCase)
public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public Node getBodyNode()
public Node getNextCase()
public Node getExpressionNodes()
public List<Node> childNodes()
childNodes
in class Node
Copyright © 2001-2015 JRuby. All Rights Reserved.