public class RootNode extends Node
| Modifier and Type | Field and Description |
|---|---|
private Node |
bodyNode |
private DynamicScope |
scope |
private StaticScope |
staticScope |
EMPTY_LIST| Constructor and Description |
|---|
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor) |
java.util.List<Node> |
childNodes() |
Node |
getBodyNode()
First real AST node to be interpreted
|
NodeType |
getNodeType() |
DynamicScope |
getScope()
Return the dynamic scope for this AST.
|
StaticScope |
getStaticScope()
The static scoping relationships that should get set first thing before interpretation
of the code represented by this AST.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate transient DynamicScope scope
private StaticScope staticScope
private Node bodyNode
public RootNode(ISourcePosition position, DynamicScope scope, Node bodyNode)
public NodeType getNodeType()
getNodeType in class Nodepublic DynamicScope getScope()
public StaticScope getStaticScope()
public Node getBodyNode()
public java.lang.Object accept(NodeVisitor iVisitor)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)