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> Taccept(NodeVisitor<T> iVisitor) booleangetName()Gets the name.inthashCode()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:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
-
getName
Gets the name. -
childNodes
- Specified by:
childNodesin classNode
-
literalValue
- Specified by:
literalValuein interfaceLiteralValue
-