|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.analysis.xmlgraph.XMLGraphAnalysis
public class XMLGraphAnalysis
XML graph lattice and transfer functions for dataflow analysis.
Constructor Summary | |
---|---|
XMLGraphAnalysis(XMLGraph global_xg,
ElementNode dummy_root,
ChoiceNode dummy_root_content,
Map<String,String> namespaces,
StatementNodes stm_nodes,
Set<Statement> empty_xpath,
Set<Statement> check_fails)
Constructs a new XML graph dataflow analysis. |
Method Summary | |
---|---|
void |
assign(XMLGraph g,
Statement s)
Invoked after each assignment transfer function on the resulting value. |
boolean |
merge(XMLGraph source,
XMLGraph dest)
Computes the least upper bound of two value lattice elements. |
XMLGraph |
newBottomElement()
Creates a placeholder for a lattice element for a flow value, having the initial value. |
XMLGraph |
transferCast(CastStm s,
XMLGraph base)
Transfer function for a CastStm . |
void |
transferCheck(CheckStm s,
XMLGraph base)
Transfer function for a CheckStm . |
XMLGraph |
transferConcat(ConcatStm s,
XMLGraph xmlsource)
Transfer function for a ConcatStm . |
XMLGraph |
transferConst(ConstStm s)
Transfer function for a ConstStm . |
XMLGraph |
transferCopy(CopyStm s,
XMLGraph base,
XMLGraph firstattr,
XMLGraph firstchild,
XMLGraph nextnode)
Transfer function for a CopyStm . |
XMLGraph |
transferEmpty(EmptyStm s)
Transfer function for an EmptyStm . |
XMLGraph |
transferGapify(GapifyStm s,
XMLGraph base)
Transfer function for a GapifyStm . |
XMLGraph |
transferGet(GetStm s,
XMLGraph base)
Transfer function for a GetStm . |
XMLGraph |
transferInsert(InsertStm s,
XMLGraph base,
XMLGraph xmlsrc)
Transfer function for an InsertStm . |
XMLGraph |
transferNode(NodeStm s,
XMLGraph firstattr,
XMLGraph firstchild,
XMLGraph nextnode)
Transfer function for a NodeStm . |
XMLGraph |
transferPlug(PlugStm s,
XMLGraph base,
XMLGraph xmlsrc)
Transfer function for a PlugStm . |
XMLGraph |
transferRemove(RemoveStm s,
XMLGraph base)
Transfer function for a RemoveStm . |
XMLGraph |
transferSet(SetStm s,
XMLGraph base,
XMLGraph xmlsrc)
Transfer function for a SetStm . |
XMLGraph |
transferUnknown(UnknownStm s)
Transfer function for an UnknownStm . |
XMLGraph |
transferValidate(ValidateStm s,
XMLGraph base)
Transfer function for a ValidateStm . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLGraphAnalysis(XMLGraph global_xg, ElementNode dummy_root, ChoiceNode dummy_root_content, Map<String,String> namespaces, StatementNodes stm_nodes, Set<Statement> empty_xpath, Set<Statement> check_fails)
Method Detail |
---|
public void assign(XMLGraph g, Statement s)
VariableAnalysisInterface
assign
in interface VariableAnalysisInterface<XMLGraph>
public boolean merge(XMLGraph source, XMLGraph dest)
VariableAnalysisInterface
merge
in interface VariableAnalysisInterface<XMLGraph>
true
if the new value of dest
is
different from the old, false
otherwise.public XMLGraph newBottomElement()
VariableAnalysisInterface
newBottomElement
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferCast(CastStm s, XMLGraph base)
VariableAnalysisInterface
CastStm
.
transferCast
in interface VariableAnalysisInterface<XMLGraph>
public void transferCheck(CheckStm s, XMLGraph base)
VariableAnalysisInterface
CheckStm
.
transferCheck
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferConcat(ConcatStm s, XMLGraph xmlsource)
VariableAnalysisInterface
ConcatStm
.
transferConcat
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferConst(ConstStm s)
VariableAnalysisInterface
ConstStm
.
transferConst
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferCopy(CopyStm s, XMLGraph base, XMLGraph firstattr, XMLGraph firstchild, XMLGraph nextnode)
VariableAnalysisInterface
CopyStm
.
transferCopy
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferEmpty(EmptyStm s)
VariableAnalysisInterface
EmptyStm
.
transferEmpty
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferGapify(GapifyStm s, XMLGraph base)
VariableAnalysisInterface
GapifyStm
.
transferGapify
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferGet(GetStm s, XMLGraph base)
VariableAnalysisInterface
GetStm
.
transferGet
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferInsert(InsertStm s, XMLGraph base, XMLGraph xmlsrc)
VariableAnalysisInterface
InsertStm
.
transferInsert
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferNode(NodeStm s, XMLGraph firstattr, XMLGraph firstchild, XMLGraph nextnode)
VariableAnalysisInterface
NodeStm
.
transferNode
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferPlug(PlugStm s, XMLGraph base, XMLGraph xmlsrc)
VariableAnalysisInterface
PlugStm
.
transferPlug
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferRemove(RemoveStm s, XMLGraph base)
VariableAnalysisInterface
RemoveStm
.
transferRemove
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferSet(SetStm s, XMLGraph base, XMLGraph xmlsrc)
VariableAnalysisInterface
SetStm
.
transferSet
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferUnknown(UnknownStm s)
VariableAnalysisInterface
UnknownStm
.
transferUnknown
in interface VariableAnalysisInterface<XMLGraph>
public XMLGraph transferValidate(ValidateStm s, XMLGraph base)
VariableAnalysisInterface
ValidateStm
.
transferValidate
in interface VariableAnalysisInterface<XMLGraph>
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |