com.japisoft.formula.operator
Interface OperatorFactory

All Known Implementing Classes:
OperatorFactoryImpl

public interface OperatorFactory

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Method Summary
 BinaryOperator getBinaryOperator(java.lang.String name)
           
 TernaryOperator getTernaryOperator(java.lang.String name)
           
 UnaryOperator getUnaryOperator(java.lang.String name)
           
 void setBinaryOperator(java.lang.String name, BinaryOperator operator)
          Replace an operator by this one, if the operator is null the operator will be removed
 void setTernaryOperator(java.lang.String name, TernaryOperator operator)
          Replace an operator by this one, if the operator is null the operator will be removed
 void setUnaryOperator(java.lang.String name, UnaryOperator operator)
          Replace an operator by this one, if the operator is null the operator will be removed
 

Method Detail

getUnaryOperator

public UnaryOperator getUnaryOperator(java.lang.String name)
Returns:
an unary operator for the following name

getBinaryOperator

public BinaryOperator getBinaryOperator(java.lang.String name)
Returns:
a binary operator for the following name

getTernaryOperator

public TernaryOperator getTernaryOperator(java.lang.String name)
Returns:
a ternary operator for the following name

setUnaryOperator

public void setUnaryOperator(java.lang.String name,
                             UnaryOperator operator)
Replace an operator by this one, if the operator is null the operator will be removed


setBinaryOperator

public void setBinaryOperator(java.lang.String name,
                              BinaryOperator operator)
Replace an operator by this one, if the operator is null the operator will be removed


setTernaryOperator

public void setTernaryOperator(java.lang.String name,
                               TernaryOperator operator)
Replace an operator by this one, if the operator is null the operator will be removed