org.jruby.ast
Class BlockNode

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

public class BlockNode
extends ListNode

Represents a block of nodes (read that as list).


Field Summary
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
BlockNode(ISourcePosition position)
           
 
Method Summary
 Instruction accept(NodeVisitor iVisitor)
          RubyMethod used by visitors.
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockNode

public BlockNode(ISourcePosition position)
Method Detail

accept

public Instruction accept(NodeVisitor iVisitor)
RubyMethod used by visitors. accepts the visitor

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

interpret

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


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