Package org.jruby.ast
Class ClassVarAsgnNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.AssignableNode
org.jruby.ast.ClassVarAsgnNode
- All Implemented Interfaces:
INameNode
Class variable assignment node.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(NodeVisitor<T> iVisitor) Accept for the visitor pattern.getName()Gets the name.booleanCheck whether the given node is considered always "defined" or whether it has some form of definition check.Methods inherited from class org.jruby.ast.AssignableNode
getValueNode, setValueNodeMethods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
ClassVarAsgnNode
- Parameters:
name- id of the class variable to assign tovalueNode- Node used to compute the new value when the assignment is evaled
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getName
Gets the name. -
childNodes
- Specified by:
childNodesin classNode
-
needsDefinitionCheck
public boolean needsDefinitionCheck()Description copied from class:NodeCheck whether the given node is considered always "defined" or whether it has some form of definition check.- Overrides:
needsDefinitionCheckin classNode- Returns:
- Whether the type of node represents a possibly undefined construct
-