org.jruby.ast
Class AssignableNode

java.lang.Object
  extended byorg.jruby.ast.Node
      extended byorg.jruby.ast.AssignableNode
All Implemented Interfaces:
IArityNode, InstructionContext, ISourcePositionHolder, java.io.Serializable
Direct Known Subclasses:
ClassVarAsgnNode, ClassVarDeclNode, ConstDeclNode, DAsgnNode, GlobalAsgnNode, InstAsgnNode, LocalAsgnNode, MultipleAsgnNode

public abstract class AssignableNode
extends Node
implements IArityNode

Base class of any node which can be assigned to.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
AssignableNode(ISourcePosition position, int id)
           
 
Method Summary
 Arity getArity()
          Almost all assignables are only assigned a single value.
 Node getValueNode()
          Gets the valueNode.
 void setValueNode(Node valueNode)
          Sets the valueNode.
 
Methods inherited from class org.jruby.ast.Node
accept, addComment, addComments, childNodes, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignableNode

public AssignableNode(ISourcePosition position,
                      int id)
Method Detail

getValueNode

public Node getValueNode()
Gets the valueNode.

Returns:
Returns a Node

setValueNode

public void setValueNode(Node valueNode)
Sets the valueNode.

Parameters:
valueNode - The valueNode to set

getArity

public Arity getArity()
Almost all assignables are only assigned a single value.

Specified by:
getArity in interface IArityNode


Copyright © 2002-2007 JRuby Team. All Rights Reserved.