Package org.jruby.ast
Class LiteralNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.LiteralNode
- All Implemented Interfaces:
InvisibleNode
This is not a node in the classic sense in that it has no defined or
interpret method which can be called. It just stores the position of
the literal and the name/value of the literal. We made it a node so that
the parser needs to work less hard in its productions. dynamic literals
are nodes and by having literals also be nodes means they have a common
subtype which is not Object.
Used by alias and undef.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.getName()
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
-
Constructor Details
-
LiteralNode
-
-
Method Details
-
getName
-
getByteName
-
getSymbolName
-
accept
Accept for the visitor pattern. -
childNodes
- Specified by:
childNodes
in classNode
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-