public class WhileNode extends Node
| Modifier and Type | Field and Description |
|---|---|
private Node |
bodyNode |
private Node |
conditionNode |
boolean |
containsNonlocalFlow |
private boolean |
evaluateAtStart |
EMPTY_LIST| Constructor and Description |
|---|
WhileNode(ISourcePosition position,
Node conditionNode,
Node bodyNode) |
WhileNode(ISourcePosition position,
Node conditionNode,
Node bodyNode,
boolean evalAtStart) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
boolean |
evaluateAtStart()
Determine whether this is while or do while
|
Node |
getBodyNode()
Gets the bodyNode.
|
Node |
getConditionNode()
Gets the conditionNode.
|
NodeType |
getNodeType() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node conditionNode
private final Node bodyNode
private final boolean evaluateAtStart
public boolean containsNonlocalFlow
public WhileNode(ISourcePosition position, Node conditionNode, Node bodyNode)
public WhileNode(ISourcePosition position, Node conditionNode, Node bodyNode, boolean evalAtStart)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getConditionNode()
public boolean evaluateAtStart()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)