org.jruby.ast
Class DSymbolNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ListNode
          extended by org.jruby.ast.DSymbolNode
All Implemented Interfaces:
ISourcePositionHolder

public class DSymbolNode
extends ListNode

Node representing symbol in a form like ':"3jane"'.


Constructor Summary
DSymbolNode(ISourcePosition position)
           
DSymbolNode(ISourcePosition position, DStrNode node)
          For mutating from a DStr to a DSym (we just create a new one with same contents).
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
           
 NodeType getNodeType()
           
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, childNodes, get, getLast, prepend, size
 
Methods inherited from class org.jruby.ast.Node
assign, createList, definition, getNodeName, getPosition, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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-2007 JRuby Team. All Rights Reserved.