org.jrubyparser.ast
Class OpElementAsgnNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.OpElementAsgnNode
All Implemented Interfaces:
ISourcePositionHolder
Direct Known Subclasses:
OpElementAsgnAndNode, OpElementAsgnOrNode

public class OpElementAsgnNode
extends Node

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

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


Constructor Summary
OpElementAsgnNode(SourcePosition position, Node receiverNode, String operatorName, Node argsNode, Node valueNode)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 Node getArgs()
           
 Node getArgsNode()
          Deprecated. 
 NodeType getNodeType()
           
 String getOperatorName()
          Gets the operatorName.
 Node getReceiver()
           
 Node getReceiverNode()
          Deprecated. 
 Node getValue()
           
 Node getValueNode()
          Deprecated. 
 boolean isSame(Node node)
          Checks node for 'sameness' for diffing.
 void setArgs(Node args)
           
 void setOperatorName(String name)
           
 void setReceiver(Node receiver)
           
 void setValue(Node value)
           
 
Methods inherited from class org.jrubyparser.ast.Node
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpElementAsgnNode

public OpElementAsgnNode(SourcePosition position,
                         Node receiverNode,
                         String operatorName,
                         Node argsNode,
                         Node valueNode)
Method Detail

isSame

public boolean isSame(Node node)
Checks node for 'sameness' for diffing.

Overrides:
isSame in class Node
Parameters:
node - to be compared to
Returns:
Returns a boolean

getNodeType

public NodeType getNodeType()
Specified by:
getNodeType in class Node
Returns:
the nodeId

accept

public Object accept(NodeVisitor iVisitor)
Accept for the visitor pattern.

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

getArgsNode

@Deprecated
public Node getArgsNode()
Deprecated. 

Gets the argsNode.

Returns:
Returns a Node

getArgs

public Node getArgs()

setArgs

public void setArgs(Node args)

getOperatorName

public String getOperatorName()
Gets the operatorName.

Returns:
Returns a String

setOperatorName

public void setOperatorName(String name)

getReceiverNode

@Deprecated
public Node getReceiverNode()
Deprecated. 

Gets the receiverNode.

Returns:
Returns a Node

getReceiver

public Node getReceiver()

setReceiver

public void setReceiver(Node receiver)

getValueNode

@Deprecated
public Node getValueNode()
Deprecated. 

Gets the valueNode.

Returns:
Returns a Node

getValue

public Node getValue()

setValue

public void setValue(Node value)


Copyright © 2013. All Rights Reserved.