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"'.


Field Summary
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, nodeId
 
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
 Instruction accept(NodeVisitor visitor)
           
 
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, childNodes, get, getLast, prepend, size, toString
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition
 
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

accept

public Instruction accept(NodeVisitor visitor)
Overrides:
accept in class ListNode


Copyright © 2002-2007 JRuby Team. All Rights Reserved.