Package org.jruby.ast
Class SymbolNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.SymbolNode
- All Implemented Interfaces:
LiteralValue
,SideEffectFree
,ILiteralNode
,INameNode
public class SymbolNode
extends Node
implements ILiteralNode, INameNode, LiteralValue, SideEffectFree
Represents a symbol (:symbol_name).
-
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) boolean
getName()
Gets the name.int
hashCode()
literalValue
(Ruby runtime) 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
-
SymbolNode
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
-
getName
Gets the name. -
childNodes
- Specified by:
childNodes
in classNode
-
literalValue
- Specified by:
literalValue
in interfaceLiteralValue
-