Package org.jruby.ast
Class DSymbolNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.DNode
org.jruby.ast.DSymbolNode
Node representing symbol in a form like ':"3jane"'.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionDSymbolNode
(int line) DSymbolNode
(int line, DStrNode node) For mutating from a DStr to a DSym (we just create a new one with same contents). -
Method Summary
Methods inherited from class org.jruby.ast.DNode
getEncoding
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, addAll, addAllInternal, addInternal, childNodes, children, get, getLast, isEmpty, iterator, size
Methods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DSymbolNode
For mutating from a DStr to a DSym (we just create a new one with same contents).- Parameters:
node
- to be copied
-
DSymbolNode
public DSymbolNode(int line)
-
-
Method Details
-
getNodeType
- Overrides:
getNodeType
in classListNode
- Returns:
- the nodeId
-
accept
-