saffron.rel.convert
Class FactoryConverterRule
java.lang.Object
|
+--saffron.opt.Rule
|
+--saffron.rel.convert.ConverterRule
|
+--saffron.rel.convert.FactoryConverterRule
- public class FactoryConverterRule
- extends ConverterRule
Generic implementation of ConverterRule
which lets a
ConverterFactory
do the work.
- Since:
- Jun 18, 2003
- Version:
- $Id: //open/saffron/src/main/saffron/rel/convert/FactoryConverterRule.java#1 $
- Author:
- jhyde
Method Summary |
Rel |
convert(Rel rel)
|
boolean |
isGuaranteed()
Returns true if this rule can convert any relational expression
of the input convention. |
factory
private final ConverterFactory factory
FactoryConverterRule
public FactoryConverterRule(ConverterFactory factory,
CallingConvention inConvention)
convert
public Rel convert(Rel rel)
- Specified by:
convert
in class ConverterRule
isGuaranteed
public boolean isGuaranteed()
- Description copied from class:
ConverterRule
- Returns true if this rule can convert any relational expression
of the input convention.
The union-to-java converter, for example, is not guaranteed, because
it only works on unions.
- Overrides:
isGuaranteed
in class ConverterRule