public class BreakNode extends Node implements NonLocalControlFlowNode
| Modifier and Type | Field and Description |
|---|---|
private Node |
valueNode |
EMPTY_LIST| Constructor and Description |
|---|
BreakNode(ISourcePosition position,
Node valueNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
NodeType |
getNodeType() |
Node |
getValueNode()
Gets the valueNode.
|
boolean |
hasValue() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node valueNode
public BreakNode(ISourcePosition position, Node valueNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getValueNode()
getValueNode in interface NonLocalControlFlowNodepublic boolean hasValue()
hasValue in interface NonLocalControlFlowNodepublic java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)