public class RootNode extends Node implements ParseResult
containsVariableAssignment, newline| Constructor and Description |
|---|
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode,
java.lang.String file) |
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode,
java.lang.String file,
int endPosition)
Deprecated.
|
RootNode(ISourcePosition position,
DynamicScope scope,
Node bodyNode,
java.lang.String file,
int endPosition,
boolean needsCodeCoverage) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor) |
java.util.List<Node> |
childNodes() |
boolean |
executesOnce() |
Node |
getBodyNode()
First real AST node to be interpreted
|
int |
getEndPosition() |
java.lang.String |
getFile()
Which file does this source position live in?
|
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.
|
boolean |
hasEndPosition() |
boolean |
needsCoverage() |
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getLine, getNodeName, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString, toStringInternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLinepublic RootNode(ISourcePosition position, DynamicScope scope, Node bodyNode, java.lang.String file)
public RootNode(ISourcePosition position, DynamicScope scope, Node bodyNode, java.lang.String file, int endPosition, boolean needsCodeCoverage)
@Deprecated public RootNode(ISourcePosition position, DynamicScope scope, Node bodyNode, java.lang.String file, int endPosition)
public NodeType getNodeType()
getNodeType in class Nodepublic DynamicScope getScope()
public StaticScope getStaticScope()
getStaticScope in interface ParseResultpublic java.lang.String getFile()
ISourcePositiongetFile in interface ISourcePositiongetFile in interface ParseResultgetFile in interface PositionAwaregetFile in class Nodepublic Node getBodyNode()
public <T> T accept(NodeVisitor<T> iVisitor)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic boolean hasEndPosition()
public int getEndPosition()
public boolean needsCoverage()
public boolean executesOnce()
executesOnce in class NodeCopyright © 2001-2021 JRuby. All Rights Reserved.