Package org.jruby.ast
Class InstAsgnNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.AssignableNode
org.jruby.ast.InstAsgnNode
- All Implemented Interfaces:
INameNode
Represents an instance variable assignment.
-
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.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, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
InstAsgnNode
- Parameters:
line- location of this instance variablename- the name of this instance variablevalueNode- the value of the variable
-
-
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
-