org.jruby.ast
Class ArrayNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ListNode
          extended by org.jruby.ast.ArrayNode
All Implemented Interfaces:
ILiteralNode, ISourcePositionHolder

public class ArrayNode
extends ListNode
implements ILiteralNode

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


Field Summary
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
ArrayNode(ISourcePosition position)
           
ArrayNode(ISourcePosition position, Node firstNode)
           
 
Method Summary
 Instruction accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 IRubyObject[] interpretPrimitive(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 boolean isLightweight()
           
 void setLightweight(boolean lightweight)
           
 
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, childNodes, get, getLast, prepend, size, toString
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayNode

public ArrayNode(ISourcePosition position,
                 Node firstNode)

ArrayNode

public ArrayNode(ISourcePosition position)
Method Detail

accept

public Instruction accept(NodeVisitor iVisitor)
Accept for the visitor pattern.

Overrides:
accept in class ListNode
Parameters:
iVisitor - the visitor

setLightweight

public void setLightweight(boolean lightweight)

isLightweight

public boolean isLightweight()

interpret

public IRubyObject interpret(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block aBlock)
Overrides:
interpret in class Node

interpretPrimitive

public IRubyObject[] interpretPrimitive(Ruby runtime,
                                        ThreadContext context,
                                        IRubyObject self,
                                        Block aBlock)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.