org.jruby.ast
Class EvStrNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.EvStrNode
All Implemented Interfaces:
INode, java.io.Serializable

public class EvStrNode
extends AbstractNode

Represents an #{} expression in a string. This Node is always a subnode of a DStrNode, DXStrNode or a DRegexpNode. Before this Node is evaluated it contains the code as a String (value). After the first evaluation this String is parsed into the evaluatedNode INode.

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
EvStrNode(ISourcePosition position, java.lang.String value)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 INode getEvaluatedNode()
          Gets the evaluatedNode.
 java.lang.String getValue()
          Gets the value.
 void setEvaluatedNode(INode evaluatedNode)
          Sets the evaluatedNode.
 
Methods inherited from class org.jruby.ast.AbstractNode
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvStrNode

public EvStrNode(ISourcePosition position,
                 java.lang.String value)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getValue

public java.lang.String getValue()
Gets the value.

Returns:
Returns a String

getEvaluatedNode

public INode getEvaluatedNode()
Gets the evaluatedNode.

Returns:
Returns a INode

setEvaluatedNode

public void setEvaluatedNode(INode evaluatedNode)
Sets the evaluatedNode.

Parameters:
evaluatedNode - The evaluatedNode to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.