org.jruby.ast
Class InstAsgnNode

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

public class InstAsgnNode
extends AbstractNode
implements IAssignableNode

Represents an instance variable assignment.

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

Constructor Summary
InstAsgnNode(ISourcePosition position, java.lang.String iName, INode iValueNode)
          Construtor.
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.lang.String getName()
          Gets the name.
 INode getValueNode()
          Gets the valueNode.
 void setValueNode(INode valueNode)
          Sets the valueNode.
 
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

InstAsgnNode

public InstAsgnNode(ISourcePosition position,
                    java.lang.String iName,
                    INode iValueNode)
Construtor.

Parameters:
iName - the name of the instance variable
iValueNode - the value of the variable
Method Detail

accept

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

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

getName

public java.lang.String getName()
Gets the name.

Returns:
Returns a String

getValueNode

public INode getValueNode()
Gets the valueNode.

Specified by:
getValueNode in interface IAssignableNode
Returns:
Returns a INode

setValueNode

public void setValueNode(INode valueNode)
Sets the valueNode.

Specified by:
setValueNode in interface IAssignableNode
Parameters:
valueNode - The valueNode to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.