org.jruby.ast
Class CaseNode

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

public class CaseNode
extends AbstractNode

A Case statement. Represents a complete case statement, including the body with its when statements.

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

Constructor Summary
CaseNode(ISourcePosition position, INode caseNode, IListNode whenNodes, INode elseNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 INode getCaseNode()
          Gets the caseNode.
 INode getElseNode()
          Gets the elseNode.
 IListNode getWhenNodes()
          Gets the whenNodes.
 
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

CaseNode

public CaseNode(ISourcePosition position,
                INode caseNode,
                IListNode whenNodes,
                INode elseNode)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getCaseNode

public INode getCaseNode()
Gets the caseNode. caseNode is the case expression

Returns:
caseNode

getWhenNodes

public IListNode getWhenNodes()
Gets the whenNodes. the body of the case statement, a list of WhenNode

Returns:
whenNodes

getElseNode

public INode getElseNode()
Gets the elseNode.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.