|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.score.pred.Supertype scale.score.pred.Export
public abstract class Export
This predicate class exports a Scribble graph so that it can be visualized.
$Id: Export.java,v 1.58 2006-02-28 16:37:17 burrill Exp $
Copyright 2007 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
The primary difference in the different edges is the color and/or type of line used to represent it.
Field Summary | |
---|---|
protected DisplayGraph |
da
The display graph object. |
Constructor Summary | |
---|---|
protected |
Export(DisplayGraph da)
|
Method Summary | |
---|---|
protected void |
addAnnotationEdge(Annotation n2,
Note n1)
Create an edge from a node to an annotation. |
protected void |
addBadEdge(Note n1,
Note n2)
Create an edge from n1 to n2 where the link is not correct. |
protected void |
addCfgEdge(Chord n1,
Chord n2)
Create a CFG edge from n1 to n2. |
protected void |
addCfgEdges(Chord n)
Add the out-going CFG edges of the node to the graph. |
protected void |
addClefEdge(Node n1,
Note n2)
Create an AST edge from n1 to n2. |
protected void |
addDataEdge(Note n1,
Note n2)
Display an "data" edge between the two objects. |
protected void |
addDataEdges(Note n)
Add the out-going data edges of the node to the graph. |
protected void |
addDefUseEdge(Note n1,
Note n2)
Add a regular use-def edge in the graph. |
protected void |
addDomEdge(Note n2,
Note n1)
Create a "dominance" edge from n1 to n2. |
protected void |
addFalseCfgEdge(Chord n1,
Chord n2)
Used for if-then-else constructs to create an edge from n1 to n2. |
protected void |
addGraphNodeEdge(Note n1,
MayDef mayDef)
Add an edge representing a May Def graph node link. |
protected void |
addMayDefEdge(Note n1,
MayDef mayDef)
Add an edge representing a May Def. |
protected void |
addMayUseEdge(Note n1,
MayUse mayUse)
Add an edge representing a May Use. |
protected void |
addTrueCfgEdge(Chord n1,
Chord n2)
Used for if-then-else constructs to create an edge from n1 to n2. |
protected void |
addUseDefEdge(Note n1,
Note n2)
Add a regular use-def edge in the graph. |
abstract void |
traverse(Chord start)
Perform the traversal of the nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DisplayGraph da
Constructor Detail |
---|
protected Export(DisplayGraph da)
da
- is the display graph objectMethod Detail |
---|
public abstract void traverse(Chord start)
start
- is the first node to traverseprotected void addDataEdges(Note n)
protected void addCfgEdges(Chord n)
protected void addUseDefEdge(Note n1, Note n2)
n1
- the use noden2
- the def nodeprotected void addDefUseEdge(Note n1, Note n2)
n1
- the use noden2
- the def nodeprotected void addMayUseEdge(Note n1, MayUse mayUse)
n1
- the node reprsenting the usemayUse
- the node containing info on the potential definitionMayUse
protected void addMayDefEdge(Note n1, MayDef mayDef)
n1
- the node causing the may definition.mayDef
- a node that representing the previous definition.MayDef
protected void addGraphNodeEdge(Note n1, MayDef mayDef)
n1
- the node causing the may definition.mayDef
- a node that representing the previous definition.MayDef
protected void addCfgEdge(Chord n1, Chord n2)
protected void addTrueCfgEdge(Chord n1, Chord n2)
protected void addFalseCfgEdge(Chord n1, Chord n2)
protected void addDataEdge(Note n1, Note n2)
protected void addDomEdge(Note n2, Note n1)
protected void addAnnotationEdge(Annotation n2, Note n1)
protected void addClefEdge(Node n1, Note n2)
protected void addBadEdge(Note n1, Note n2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |