org.jruby.ast
Class GlobalAsgnNode

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

public class GlobalAsgnNode
extends AbstractNode
implements IAssignableNode

Represents an assignment to a global variable.

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

Constructor Summary
GlobalAsgnNode(ISourcePosition position, java.lang.String name, INode valueNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Method used by visitors.
 java.lang.String getName()
          Gets the name.
 INode getValueNode()
          Gets the valueNode.
 void setName(java.lang.String name)
          Sets the name.
 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

GlobalAsgnNode

public GlobalAsgnNode(ISourcePosition position,
                      java.lang.String name,
                      INode valueNode)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Method used by visitors. accepts the visitor

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

getName

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

Returns:
Returns a String

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

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.