public class DAsgnNode extends AssignableNode implements INameNode, IScopedNode
containsVariableAssignment, newline
Constructor and Description |
---|
DAsgnNode(ISourcePosition position,
String name,
int location,
Node valueNode) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
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
|
String |
getName()
Gets the name.
|
NodeType |
getNodeType() |
boolean |
needsDefinitionCheck()
Check whether the given node is considered always "defined" or whether it
has some form of definition check.
|
void |
setName(String name) |
getValueNode, setValueNode
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getLine, getNodeName, getPosition, isNewline, isNil, setNewline, setPosition, toString, toString, toStringInternal
public DAsgnNode(ISourcePosition position, String name, int location, Node valueNode)
public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public String getName()
public int getDepth()
getDepth
in interface IScopedNode
public int getIndex()
getIndex
in interface IScopedNode
public List<Node> childNodes()
childNodes
in class Node
public void setName(String name)
public boolean needsDefinitionCheck()
Node
needsDefinitionCheck
in class Node
Copyright © 2001-2016 JRuby. All Rights Reserved.