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
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, EMPTY_LIST, newline -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(NodeVisitor<T> iVisitor) booleangetName()Gets the name.literalValue(Ruby runtime) Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
name
-
-
Constructor Details
-
SymbolNode
-
-
Method Details
-
equals
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
-
getName
Gets the name. -
childNodes
- Specified by:
childNodesin classNode
-
literalValue
- Specified by:
literalValuein interfaceLiteralValue
-