org.jrubyparser.ast
Class AssignableNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.AssignableNode
All Implemented Interfaces:
ISourcePositionHolder
Direct Known Subclasses:
ClassVarAsgnNode, ClassVarDeclNode, ConstDeclNode, DAsgnNode, GlobalAsgnNode, InstAsgnNode, LocalAsgnNode, MultipleAsgnNode

public abstract class AssignableNode
extends Node

Base class of any node which can be assigned to.


Constructor Summary
AssignableNode(SourcePosition position)
           
AssignableNode(SourcePosition position, Node valueNode)
           
 
Method Summary
 SourcePosition getLeftHandSidePosition()
           
 Node getValue()
          Gets the valueNode.
 Node getValueNode()
          Deprecated. 
 boolean isSame(Node node)
          Checks node for 'sameness' for diffing.
 void setValue(Node valueNode)
          Sets the valueNode.
 void setValueNode(Node valueNode)
          Deprecated. 
 
Methods inherited from class org.jrubyparser.ast.Node
accept, adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getNodeType, 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

AssignableNode

public AssignableNode(SourcePosition position)

AssignableNode

public AssignableNode(SourcePosition position,
                      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

getValue

public Node getValue()
Gets the valueNode.

Returns:
Returns a Node

getValueNode

@Deprecated
public Node getValueNode()
Deprecated. 


setValue

public void setValue(Node valueNode)
Sets the valueNode.

Parameters:
valueNode - The valueNode to set

setValueNode

@Deprecated
public void setValueNode(Node valueNode)
Deprecated. 


getLeftHandSidePosition

public SourcePosition getLeftHandSidePosition()


Copyright © 2013. All Rights Reserved.