net.sf.bddbddb.ir.lowlevel
Class Replace

java.lang.Object
  extended by net.sf.bddbddb.ir.Operation
      extended by net.sf.bddbddb.ir.lowlevel.LowLevelOperation
          extended by net.sf.bddbddb.ir.lowlevel.Replace
All Implemented Interfaces:
IterationElement

public class Replace
extends LowLevelOperation

Replace

Version:
$Id: Replace.java 445 2005-02-21 02:32:50Z cs343 $
Author:
John Whaley

Field Summary
 
Fields inherited from class net.sf.bddbddb.ir.Operation
id, TRACE_VERBOSE
 
Constructor Summary
Replace(BDDRelation r0, BDDRelation r1)
           
 
Method Summary
 Operation copy()
           
 java.lang.String getExpressionString()
           
 net.sf.javabdd.BDDPairing getPairing()
           
 Relation getRelationDest()
           
 BDDRelation getSrc()
           
 java.util.List getSrcs()
           
 void replaceSrc(Relation r_old, Relation r_new)
           
 net.sf.javabdd.BDDPairing setPairing()
           
 void setRelationDest(Relation r0)
           
 java.lang.String toString()
           
 java.lang.Object visit(LowLevelOperationVisitor i)
           
 
Methods inherited from class net.sf.bddbddb.ir.lowlevel.LowLevelOperation
visit
 
Methods inherited from class net.sf.bddbddb.ir.Operation
getNumberOfOperations, getRenames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Replace

public Replace(BDDRelation r0,
               BDDRelation r1)
Parameters:
r0 -
r1 -
Method Detail

setPairing

public net.sf.javabdd.BDDPairing setPairing()

visit

public java.lang.Object visit(LowLevelOperationVisitor i)
Specified by:
visit in class LowLevelOperation
Parameters:
i - visitor
Returns:
the result from the visitor

toString

public java.lang.String toString()
Specified by:
toString in class Operation

getRelationDest

public Relation getRelationDest()
Specified by:
getRelationDest in class Operation
Returns:
the destination relation of this operation, or null

setRelationDest

public void setRelationDest(Relation r0)
Specified by:
setRelationDest in class Operation

getSrc

public BDDRelation getSrc()
Returns:
the source relation

getSrcs

public java.util.List getSrcs()
Specified by:
getSrcs in class Operation
Returns:
the source relation of this operation

replaceSrc

public void replaceSrc(Relation r_old,
                       Relation r_new)
Specified by:
replaceSrc in class Operation

getExpressionString

public java.lang.String getExpressionString()
Specified by:
getExpressionString in class Operation
Returns:
the expression in string form

getPairing

public net.sf.javabdd.BDDPairing getPairing()
Returns:
the pairing

copy

public Operation copy()
Specified by:
copy in class Operation


Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.