public class LocalVarNode extends Node implements INameNode, IScopedNode, SideEffectFree
containsVariableAssignment, newline| Constructor and Description |
|---|
LocalVarNode(ISourcePosition position,
int location,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
int |
getDepth()
How many scopes should we burrow down to until we need to set the block variable value.
|
int |
getIndex()
Gets the index within the scope construct that actually holds the eval'd value
of this local variable
|
java.lang.String |
getName()
What is the name of this variable
|
NodeType |
getNodeType() |
boolean |
needsDefinitionCheck()
Check whether the given node is considered always "defined" or whether it
has some form of definition check.
|
void |
setName(java.lang.String name)
Set the name of this variable (for refactoring support)
|
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getFile, getLine, getNodeName, getPosition, isNewline, isNil, setNewline, setPosition, toString, toString, toStringInternalpublic LocalVarNode(ISourcePosition position, int location, java.lang.String name)
public NodeType getNodeType()
getNodeType in class Nodepublic <T> T accept(NodeVisitor<T> iVisitor)
public int getDepth()
getDepth in interface IScopedNodepublic int getIndex()
getIndex in interface IScopedNodepublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic java.util.List<Node> childNodes()
childNodes in class Nodepublic boolean needsDefinitionCheck()
NodeneedsDefinitionCheck in class NodeCopyright © 2001-2018 JRuby. All Rights Reserved.