net.sf.bddbddb.ir.highlevel
Class GenConstant
java.lang.Object
  
net.sf.bddbddb.ir.Operation
      
net.sf.bddbddb.ir.highlevel.GenConstant
- All Implemented Interfaces: 
 - IterationElement
 
public class GenConstant
- extends Operation
 
GenConstant
- Version:
 
  - $Id: GenConstant.java 328 2004-10-16 02:45:30Z joewhaley $
 
- Author:
 
  - jwhaley
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
GenConstant
public GenConstant(Relation r0,
                   Attribute a,
                   long value)
- Parameters:
 r0 - a - value - 
toString
public java.lang.String toString()
- Specified by:
 toString in class Operation
 
 
getExpressionString
public java.lang.String getExpressionString()
- Specified by:
 getExpressionString in class Operation
 
- Returns:
 - the expression in string form
 
 
visit
public java.lang.Object visit(OperationVisitor i)
- Specified by:
 visit in class Operation
 
- Returns:
 - the result of the visit
 
 
getRelationDest
public Relation getRelationDest()
- Specified by:
 getRelationDest in class Operation
 
- Returns:
 - the destination relation of this operation, or null
 
 
getSrcs
public java.util.List getSrcs()
- Specified by:
 getSrcs in class Operation
 
- Returns:
 - the source relation of this operation
 
 
getValue
public long getValue()
- Returns:
 - the value of this constant
 
 
getAttribute
public Attribute getAttribute()
- Returns:
 - the attribute of this constant
 
 
copy
public Operation copy()
- Specified by:
 copy in class Operation
 
 
replaceSrc
public void replaceSrc(Relation r_old,
                       Relation r_new)
- Specified by:
 replaceSrc in class Operation
 
 
setRelationDest
public void setRelationDest(Relation r0)
- Specified by:
 setRelationDest in class Operation
 
 
Copyright © 2004-2008 Stanford SUIF Compiler Group. All Rights Reserved.