org.jruby.ast
Class FlipNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.FlipNode
All Implemented Interfaces:
INode, java.io.Serializable

public class FlipNode
extends AbstractNode

a Range in a boolean expression. named after a FlipFlop component in electronic I believe.

Version:
$Revision: 1.4 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
FlipNode(ISourcePosition position, INode beginNode, INode endNode, boolean exclusive)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 INode getBeginNode()
          Gets the beginNode.
 int getCount()
          Gets the count.
 INode getEndNode()
          Gets the endNode.
 boolean isExclusive()
          Gets the exclusive.
 void setCount(int count)
          Sets the count.
 
Methods inherited from class org.jruby.ast.AbstractNode
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlipNode

public FlipNode(ISourcePosition position,
                INode beginNode,
                INode endNode,
                boolean exclusive)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getBeginNode

public INode getBeginNode()
Gets the beginNode. beginNode will set the FlipFlop the first time it is true

Returns:
Returns a INode

getEndNode

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

Returns:
Returns a INode

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

getCount

public int getCount()
Gets the count.

Returns:
Returns a int

setCount

public void setCount(int count)
Sets the count.

Parameters:
count - The count to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.