public class WhileNode extends Node
Modifier and Type | Field and Description |
---|---|
boolean |
containsNonlocalFlow |
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 |
---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
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, toString
public WhileNode(ISourcePosition position, Node conditionNode, Node bodyNode)
public WhileNode(ISourcePosition position, Node conditionNode, Node bodyNode, boolean evalAtStart)
public NodeType getNodeType()
getNodeType
in class Node
public Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getConditionNode()
public boolean evaluateAtStart()
public List<Node> childNodes()
childNodes
in class Node
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
Copyright © 2001-2015 JRuby. All Rights Reserved.