org.jruby.ast
Class IfNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.IfNode
All Implemented Interfaces:
INode, java.io.Serializable

public class IfNode
extends AbstractNode

an 'if' statement.

Version:
$Revision: 1.4 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
IfNode(ISourcePosition position, INode condition, INode thenBody, INode elseBody)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 INode getCondition()
          Gets the condition.
 INode getElseBody()
          Gets the elseBody.
 INode getThenBody()
          Gets the thenBody.
 
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

IfNode

public IfNode(ISourcePosition position,
              INode condition,
              INode thenBody,
              INode elseBody)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getCondition

public INode getCondition()
Gets the condition.

Returns:
Returns a INode

getElseBody

public INode getElseBody()
Gets the elseBody.

Returns:
Returns a INode

getThenBody

public INode getThenBody()
Gets the thenBody.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.