org.jruby.ast
Class AttrAssignNode

java.lang.Object
  extended byorg.jruby.ast.Node
      extended byorg.jruby.ast.AttrAssignNode
All Implemented Interfaces:
IArgumentNode, INameNode, InstructionContext, ISourcePositionHolder, java.io.Serializable

public class AttrAssignNode
extends Node
implements INameNode, IArgumentNode

Node that represents an assignment of either an array element or attribute.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
AttrAssignNode(ISourcePosition position, Node receiverNode, java.lang.String name, Node argsNode)
           
 
Method Summary
 Instruction accept(NodeVisitor visitor)
          Accept for the visitor pattern.
 java.util.List childNodes()
           
 Node getArgsNode()
          Gets the argsNode.
 java.lang.String getName()
          Gets the name.
 Node getReceiverNode()
          Gets the receiverNode.
 void setArgsNode(Node argsNode)
          Set the argsNode
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, 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

AttrAssignNode

public AttrAssignNode(ISourcePosition position,
                      Node receiverNode,
                      java.lang.String name,
                      Node argsNode)
Method Detail

accept

public Instruction accept(NodeVisitor visitor)
Accept for the visitor pattern.

Specified by:
accept in class Node
Parameters:
visitor - the visitor

getName

public java.lang.String getName()
Gets the name. name is the name of the method called

Specified by:
getName in interface INameNode
Returns:
name

getReceiverNode

public Node getReceiverNode()
Gets the receiverNode. receiverNode is the object on which the method is being called

Returns:
receiverNode

getArgsNode

public Node getArgsNode()
Gets the argsNode. argsNode representing the method's arguments' value for this call.

Specified by:
getArgsNode in interface IArgumentNode
Returns:
argsNode

setArgsNode

public void setArgsNode(Node argsNode)
Set the argsNode

Specified by:
setArgsNode in interface IArgumentNode
Parameters:
argsNode - set the arguments for this node.

childNodes

public java.util.List childNodes()
Specified by:
childNodes in class Node


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