org.jruby.ast
Class DNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ListNode
          extended by org.jruby.ast.DNode
All Implemented Interfaces:
ISourcePositionHolder
Direct Known Subclasses:
DRegexpNode, DStrNode, DSymbolNode, DXStrNode

public abstract class DNode
extends ListNode

Base class for all D (e.g. Dynamic) node types like DStrNode, DSymbolNode, etc...


Field Summary
protected  org.jcodings.Encoding encoding
           
 
Fields inherited from class org.jruby.ast.Node
ASSIGNMENT_BYTELIST, CLASS_VARIABLE_BYTELIST, CONSTANT_BYTELIST, EXPRESSION_BYTELIST, FALSE_BYTELIST, GLOBAL_VARIABLE_BYTELIST, INSTANCE_VARIABLE_BYTELIST, LOCAL_VARIABLE_BYTELIST, LOCAL_VARIABLE_IN_BLOCK_BYTELIST, METHOD_BYTELIST, NIL_BYTELIST, SELF_BYTELIST, SUPER_BYTELIST, TRUE_BYTELIST, YIELD_BYTELIST
 
Constructor Summary
DNode(ISourcePosition position)
           
DNode(ISourcePosition position, org.jcodings.Encoding encoding)
           
 
Method Summary
protected  RubyString allocateString(Ruby runtime)
           
 void appendToString(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock, RubyString string, Node node)
           
 RubyString buildDynamicString(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 org.jruby.util.ByteList definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 boolean is19()
           
 boolean isSameEncoding(StrNode strNode)
           
 
Methods inherited from class org.jruby.ast.ListNode
accept, add, addAll, addAll, childNodes, get, getLast, getNodeType, prepend, size
 
Methods inherited from class org.jruby.ast.Node
assign, createList, getNodeName, getPosition, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

encoding

protected org.jcodings.Encoding encoding
Constructor Detail

DNode

public DNode(ISourcePosition position)

DNode

public DNode(ISourcePosition position,
             org.jcodings.Encoding encoding)
Method Detail

interpret

public IRubyObject interpret(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block aBlock)
Overrides:
interpret in class Node

is19

public boolean is19()

isSameEncoding

public boolean isSameEncoding(StrNode strNode)

allocateString

protected RubyString allocateString(Ruby runtime)

appendToString

public void appendToString(Ruby runtime,
                           ThreadContext context,
                           IRubyObject self,
                           Block aBlock,
                           RubyString string,
                           Node node)

buildDynamicString

public RubyString buildDynamicString(Ruby runtime,
                                     ThreadContext context,
                                     IRubyObject self,
                                     Block aBlock)

definition

public org.jruby.util.ByteList definition(Ruby runtime,
                                          ThreadContext context,
                                          IRubyObject self,
                                          Block aBlock)
Overrides:
definition in class Node


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