org.jruby.ast
Class ArrayNode

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

public class ArrayNode
extends AbstractNode
implements IListNode, ILiteralNode

Represents an array. This could be an array literal, quoted words or some args stuff.

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

Constructor Summary
ArrayNode(ISourcePosition position)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 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

ArrayNode

public ArrayNode(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()

accept

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

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

size

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


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.