public class ClassVarAsgnNode extends AssignableNode implements INameNode
containsVariableAssignment, newline
Constructor and Description |
---|
ClassVarAsgnNode(ISourcePosition position,
String name,
Node valueNode) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
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.
|
getValueNode, setValueNode
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getLine, getNodeName, getPosition, isNewline, isNil, setNewline, setPosition, toString, toString
public ClassVarAsgnNode(ISourcePosition position, String name, Node valueNode)
name
- id of the class variable to assign tovalueNode
- Node used to compute the new value when the assignment is evaledpublic NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public String getName()
public List<Node> childNodes()
childNodes
in class Node
public boolean needsDefinitionCheck()
Node
needsDefinitionCheck
in class Node
Copyright © 2001-2016 JRuby. All Rights Reserved.