net.sf.saffron.sql
Interface SqlOperator.TypeInference

Enclosing interface:
SqlOperator

public static interface SqlOperator.TypeInference

Strategy to infer the type of an operator call from the type of the operands.

This class is an example of the strategy pattern. This makes sense because many operators have similar, straightforward strategies, such as to take the type of the first operand.


Method Summary
 SaffronType getType(SaffronTypeFactory typeFactory, SaffronType[] argTypes)
           
 SaffronType getType(SqlValidator validator, SqlValidator.Scope scope, SqlCall call)
           
 

Method Detail

getType

public SaffronType getType(SqlValidator validator,
                           SqlValidator.Scope scope,
                           SqlCall call)

getType

public SaffronType getType(SaffronTypeFactory typeFactory,
                           SaffronType[] argTypes)

SourceForge.net_Logo