Package org.jruby.ast
Class AssignableNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.AssignableNode
- Direct Known Subclasses:
ClassVarAsgnNode
,ClassVarDeclNode
,ConstDeclNode
,DAsgnNode
,GlobalAsgnNode
,InstAsgnNode
,LocalAsgnNode
,MultipleAsgnNode
Base class of any node which can be assigned to.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionAssignableNode
(int line) AssignableNode
(int line, Node valueNode, boolean containsAssignment) -
Method Summary
Modifier and TypeMethodDescriptionGets the valueNode.void
setValueNode
(Node valueNode) Sets the valueNode.Methods inherited from class org.jruby.ast.Node
accept, childNodes, containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, getNodeType, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
AssignableNode
public AssignableNode(int line) -
AssignableNode
-
-
Method Details
-
getValueNode
Gets the valueNode.- Returns:
- Returns a Node
-
setValueNode
Sets the valueNode.- Parameters:
valueNode
- The valueNode to set
-