org.jruby.ast
Class BlockNode

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

public class BlockNode
extends AbstractNode
implements IListNode

A structuring node (linked list of other nodes). This type of node is used to structure the AST. Used in many places it is created throught the appendToBlock method

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

Constructor Summary
BlockNode(ISourcePosition position)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Method used by visitors.
 IListNode add(INode node)
           
 java.util.Iterator iterator()
           
 int size()
           
 
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
 
Methods inherited from interface org.ablaf.ast.INode
getPosition
 

Constructor Detail

BlockNode

public BlockNode(ISourcePosition position)
Method Detail

add

public IListNode add(INode node)
Specified by:
add in interface IListNode
See Also:
IListNode.add(INode)

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface IListNode
See Also:
IListNode.iterator()

size

public int size()
Specified by:
size in interface IListNode
See Also:
IListNode.size()

accept

public void accept(INodeVisitor iVisitor)
Method used by visitors. accepts the visitor

Specified by:
accept in interface INode
Parameters:
iVisitor - the visitor to accept


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.