org.jruby.ast
Class ScopeNode
java.lang.Object
org.jruby.ast.AbstractNode
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopeNode
public ScopeNode(java.util.List table,
INode bodyNode)
ScopeNode
public ScopeNode(ISourcePosition position,
java.util.List table,
INode bodyNode)
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.