org.jruby.ast
Class OpElementOneArgOrAsgnNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.OpElementAsgnNode
          extended by org.jruby.ast.OpElementOneArgOrAsgnNode
All Implemented Interfaces:
ISourcePositionHolder

public class OpElementOneArgOrAsgnNode
extends OpElementAsgnNode

Represents an operator assignment to an element. This could be for example:

 a[4] += 5
 a[3] &&= true
 


Field Summary
 
Fields inherited from class org.jruby.ast.OpElementAsgnNode
callAdapter, elementAdapter, elementAsgnAdapter
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
OpElementOneArgOrAsgnNode(ISourcePosition position, Node receiverNode, java.lang.String operatorName, ArrayNode args, Node valueNode)
           
 
Method Summary
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
Methods inherited from class org.jruby.ast.OpElementAsgnNode
accept, childNodes, getArgsNode, getOperatorName, getReceiverNode, getValueNode
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, toString, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpElementOneArgOrAsgnNode

public OpElementOneArgOrAsgnNode(ISourcePosition position,
                                 Node receiverNode,
                                 java.lang.String operatorName,
                                 ArrayNode args,
                                 Node valueNode)
Method Detail

interpret

public IRubyObject interpret(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block aBlock)
Overrides:
interpret in class OpElementAsgnNode


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