org.jruby.ast
Class ConstDeclNode

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

public class ConstDeclNode
extends AbstractNode
implements IAssignableNode

Declaration (and assignment) of a Constant.

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

Constructor Summary
ConstDeclNode(ISourcePosition position, java.lang.String name, INode valueNode)
           
 
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

ConstDeclNode

public ConstDeclNode(ISourcePosition position,
                     java.lang.String name,
                     INode valueNode)
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. name is the constant Name, it normally starts with a Capital

Returns:
name

getValueNode

public INode getValueNode()
Gets the valueNode. The node to evaluate to get the actual value to assign to the constant

Specified by:
getValueNode in interface IAssignableNode
Returns:
valueNode

setValueNode

public void setValueNode(INode valueNode)
Sets the valueNode. The node to evaluate to get the actual value to assign to the constant

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


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.