org.jruby.ast
Class StrNode

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

public class StrNode
extends AbstractNode
implements ILiteralNode

Representing a simple String literal.

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

Constructor Summary
StrNode(ISourcePosition position, java.lang.String value)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.lang.String getValue()
          Gets the value.
 void setValue(java.lang.String value)
          Sets the value.
 
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

StrNode

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

accept

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

Specified by:
accept in interface INode
Parameters:
iVisitor - the visitor

getValue

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

Returns:
Returns a String

setValue

public void setValue(java.lang.String value)
Sets the value.

Parameters:
value - The value to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.