org.jruby.ast
Class DSymbolNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.DSymbolNode
- All Implemented Interfaces:
- ISourcePositionHolder
public class DSymbolNode
- extends ListNode
Node representing symbol in a form like ':"3jane"'.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DSymbolNode
public DSymbolNode(ISourcePosition position,
DStrNode node)
- 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(ISourcePosition position)
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType
in class ListNode
- Returns:
- the nodeId
accept
public java.lang.Object accept(NodeVisitor visitor)
- Overrides:
accept
in class ListNode
interpret
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
interpret
in class Node
Copyright © 2002-2009 JRuby Team. All Rights Reserved.