|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.score.pred.Supertype
scale.score.pred.TraceChords
scale.score.pred.ExpressionList
public class ExpressionList
This class scans a Scribble CFG looking for lexically identical binary expressions.
$Id: ExpressionList.java,v 1.47 2007-10-04 19:58:34 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Field Summary |
|---|
| Fields inherited from class scale.score.pred.TraceChords |
|---|
rl, thisChord, wl |
| Constructor Summary | |
|---|---|
ExpressionList()
|
|
| Method Summary | |
|---|---|
java.util.Enumeration<Expr> |
allExprs()
Return an enumeration of all expressions that have lexically equivalent binary expressions. |
HashSet<Chord> |
allOccurs(Expr original)
Return a set of all expressions lexically equivalent to the original expression. |
int |
numExpressions()
Return the number of different expressions. |
void |
visitBinaryExpr(BinaryExpr e)
|
void |
visitChord(Chord c)
Visit each statement and traverse the expression tree (if any) connected to it. |
| Methods inherited from class scale.score.pred.TraceChords |
|---|
getChord, setChord |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionList()
| Method Detail |
|---|
public void visitChord(Chord c)
Note - this logic assumes that the expression tree is a tree and not a dag.
visitChord in class TraceChordsDualExprpublic void visitBinaryExpr(BinaryExpr e)
visitBinaryExpr in class Supertypepublic java.util.Enumeration<Expr> allExprs()
public HashSet<Chord> allOccurs(Expr original)
public int numExpressions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||