org.jruby.ast
Class PreExeNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.IterNode
          extended by org.jruby.ast.PreExeNode
All Implemented Interfaces:
ISourcePositionHolder

public class PreExeNode
extends IterNode

A pre-execution construction (BEGIN { ... }).


Field Summary
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
PreExeNode(ISourcePosition position, StaticScope scope, Node body)
           
 
Method Summary
 Instruction accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
Methods inherited from class org.jruby.ast.IterNode
childNodes, getBlockBody, getBodyNode, getScope, getVarNode
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, toString, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreExeNode

public PreExeNode(ISourcePosition position,
                  StaticScope scope,
                  Node body)
Method Detail

accept

public Instruction accept(NodeVisitor iVisitor)
Description copied from class: IterNode
Accept for the visitor pattern.

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

interpret

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


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