org.objectweb.medor.optim.api
Interface LeafRewriter


public interface LeafRewriter

A LeafRewriter is able to rewrite some types of QueryLeaf implementation.

Author:
S. Chassande-Barrioz

Method Summary
 boolean canRewrite(QueryLeaf ql)
          It returns true is the QueryLeaf can be rewrite by this LeafRewriter.
 QueryTree rewrite(QueryLeaf ql)
          It rewrites the QueryLeaf into a QueryTree.
 

Method Detail

canRewrite

public boolean canRewrite(QueryLeaf ql)
It returns true is the QueryLeaf can be rewrite by this LeafRewriter.


rewrite

public QueryTree rewrite(QueryLeaf ql)
                  throws MedorException
It rewrites the QueryLeaf into a QueryTree.

Throws:
MedorException