|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
By implementing this interface, normalizations on tree nodes are possible. More complex normalization steps might need to be implemented as TreeNormalizers. The class NormalizerPass, objects of which usually invoke NodeNormalizer objects, traverses an AST left-recursive, and calls the method normalize with each tree node before descending further "down" the tree (the trees root is on top, of course...). Modifications to the node will take effect immediatle, i.e. they will effect the further recursion. For token nodes, which are leaf nodes, the method normalize is not called.
TreeNormalizer
Method Summary | |
void |
close(OclTree tree,
NormalizerPass pass)
This method notifies the NodeNormalizer of the end of a tree normalization. |
void |
normalize(Node n,
OclTree tree)
normalize a single node |
void |
open(OclTree tree,
NormalizerPass pass)
allows the NodeNormalizers to initialize itself. |
Method Detail |
public void normalize(Node n, OclTree tree)
public void open(OclTree tree, NormalizerPass pass)
public void close(OclTree tree, NormalizerPass pass)
open()
already
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |