org.jrubyparser.ast
Class FlipNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.FlipNode
All Implemented Interfaces:
ISourcePositionHolder

public class FlipNode
extends Node

A Range in a boolean expression (named after a FlipFlop component in electronic?).


Constructor Summary
FlipNode(SourcePosition position, Node beginNode, Node endNode, boolean exclusive, int location)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 Node getBegin()
          Gets the beginNode.
 Node getBeginNode()
          Deprecated. 
 int getDepth()
          How many scopes should we burrow down to until we need to set the block variable value.
 Node getEnd()
          Gets the endNode.
 Node getEndNode()
          Deprecated. 
 int getIndex()
          Gets the index within the scope construct that actually holds the eval'd value of this local variable
 NodeType getNodeType()
           
 boolean isExclusive()
          Gets the exclusive.
 boolean isSame(Node node)
          Checks node for 'sameness' for diffing.
 
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

FlipNode

public FlipNode(SourcePosition position,
                Node beginNode,
                Node endNode,
                boolean exclusive,
                int location)
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

getBegin

public Node getBegin()
Gets the beginNode. beginNode will set the FlipFlop the first time it is true

Returns:
Returns a Node

getBeginNode

@Deprecated
public Node getBeginNode()
Deprecated. 


getEnd

public Node getEnd()
Gets the endNode. endNode will reset the FlipFlop when it is true while the FlipFlop is set.

Returns:
Returns a Node

getEndNode

@Deprecated
public Node getEndNode()
Deprecated. 


isExclusive

public boolean isExclusive()
Gets the exclusive. if the range is a 2 dot range it is false if it is a three dot it is true

Returns:
Returns a boolean

getDepth

public int getDepth()
How many scopes should we burrow down to until we need to set the block variable value.

Returns:
0 for current scope, 1 for one down, ...

getIndex

public int getIndex()
Gets the index within the scope construct that actually holds the eval'd value of this local variable

Returns:
Returns an int offset into storage structure


Copyright © 2013. All Rights Reserved.