|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.AbstractNode
org.jruby.ast.WhileNode
Represents a while stetement. This could be the both versions: while <condition> <body> end and <body> 'while' <condition>
Constructor Summary | |
WhileNode(ISourcePosition position,
INode conditionNode,
INode bodyNode)
|
|
WhileNode(ISourcePosition position,
INode conditionNode,
INode bodyNode,
boolean evalAtStart)
|
Method Summary | |
void |
accept(INodeVisitor iVisitor)
Accept for the visitor pattern. |
boolean |
evaluateAtStart()
Determine whether this is while or do while |
INode |
getBodyNode()
Gets the bodyNode. |
INode |
getConditionNode()
Gets the conditionNode. |
Methods inherited from class org.jruby.ast.AbstractNode |
getPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WhileNode(ISourcePosition position, INode conditionNode, INode bodyNode)
public WhileNode(ISourcePosition position, INode conditionNode, INode bodyNode, boolean evalAtStart)
Method Detail |
public void accept(INodeVisitor iVisitor)
iVisitor
- the visitorpublic INode getBodyNode()
public INode getConditionNode()
public boolean evaluateAtStart()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |