org.jruby.ast
Class ScopeNode

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

public class ScopeNode
extends AbstractNode

Scope in the parse tree. indicates where in the parse tree a new scope should be started when evaling. Unlike many node this is not created directly as part of the parce process, rather it is created as a side effect of other things like creating a ClassNode or SClassNode. It can also be created by evaling a DefnNode or DefsNode as part of the call to copyNodeScope.

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

Constructor Summary
ScopeNode(ISourcePosition position, java.util.List table, INode bodyNode)
           
ScopeNode(java.util.List table, INode bodyNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 INode getBodyNode()
          Gets the bodyNode.
 java.util.List getLocalNames()
          Gets the localNames.
 
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
 

Constructor Detail

ScopeNode

public ScopeNode(java.util.List table,
                 INode bodyNode)

ScopeNode

public ScopeNode(ISourcePosition position,
                 java.util.List table,
                 INode bodyNode)
Method Detail

accept

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

Parameters:
iVisitor - the visitor

getBodyNode

public INode getBodyNode()
Gets the bodyNode.

Returns:
Returns a Node

getLocalNames

public java.util.List getLocalNames()
Gets the localNames.

Returns:
Returns a List


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.