org.jruby.ast
Class DSymbolNode

java.lang.Object
  extended byorg.jruby.ast.Node
      extended byorg.jruby.ast.ListNode
          extended byorg.jruby.ast.DSymbolNode
All Implemented Interfaces:
InstructionContext, ISourcePositionHolder, java.io.Serializable

public class DSymbolNode
extends ListNode

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, 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, createList, createList, 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.