org.jruby.ast
Class DStrNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.DStrNode
- All Implemented Interfaces:
- ILiteralNode, ISourcePositionHolder
public class DStrNode
- extends ListNode
- implements ILiteralNode
A string which contains some dynamic elements which needs to be evaluated (introduced by #).
Method Summary |
Instruction |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
static void |
appendToString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
RubyString string,
Node node)
|
static RubyString |
buildDynamicString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
ListNode list)
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
|
Methods inherited from class org.jruby.ast.Node |
addComment, addComments, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, when |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DStrNode
public DStrNode(ISourcePosition position)
accept
public Instruction accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept
in class ListNode
- Parameters:
iVisitor
- the visitor
interpret
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
interpret
in class Node
buildDynamicString
public static RubyString buildDynamicString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
ListNode list)
appendToString
public static void appendToString(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
RubyString string,
Node node)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.