|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.analysis.xmlgraph.BackwardsXGAnalyzer<T>
T
- lattice type. Requires a working Object.equals(Object)
.public abstract class BackwardsXGAnalyzer<T>
Base class for performing backwards dataflow analysis on XML graphs.
Subclasses should call doAnalysis()
when the analysis should be
performed, which by convention should be at the end of its constructor.
Constructor Summary | |
---|---|
BackwardsXGAnalyzer(XMLGraph xg)
|
Method Summary | |
---|---|
protected abstract T |
bottom()
Returns BOTTOM element. |
protected void |
doAnalysis()
|
T |
get(int index)
Returns the lattice data associated with the given node; or null if the node is unreachable. |
T |
get(Node node)
Returns the lattice data associated with the given node; or null if the node is unreachable. |
protected abstract T |
initial(Node node)
Returns initial value for the specified node. |
protected abstract T |
transfer(Node node,
T currentValue)
Transfer function for the specified node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackwardsXGAnalyzer(XMLGraph xg)
Method Detail |
---|
protected abstract T bottom()
protected void doAnalysis()
public T get(int index)
index
- index of a node
public T get(Node node)
node
- a node
protected abstract T initial(Node node)
protected abstract T transfer(Node node, T currentValue)
node
- in the XML graph to analyzecurrentValue
- current lattice point for the node. Should not be modified.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |