scale.clef.expr
Class PositionIndexOp

java.lang.Object
  extended by scale.clef.expr.PositionOp
      extended by scale.clef.expr.PositionIndexOp

public class PositionIndexOp
extends PositionOp

The PositionIndexOp class represents a position in an aggregation as an single dimension array index from the start of the aggregation.

$Id: PositionIndexOp.java,v 1.2 2006-09-10 19:35:58 burrill Exp $

Copyright 2006 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Constructor Summary
PositionIndexOp(long index)
           
 
Method Summary
 boolean equivalent(java.lang.Object exp)
          Return true if the two expressions are equivalent.
 long getIndex()
          Return the single dimension array index from the start of the aggregation.
 void setIndex(long index)
          Set the single dimension array index from the start of the aggregation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PositionIndexOp

public PositionIndexOp(long index)
Method Detail

getIndex

public final long getIndex()
Return the single dimension array index from the start of the aggregation.


setIndex

public final void setIndex(long index)
Set the single dimension array index from the start of the aggregation.


equivalent

public boolean equivalent(java.lang.Object exp)
Return true if the two expressions are equivalent.

Overrides:
equivalent in class PositionOp

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object