org.openanzo.glitter.expression
Interface FunctionOnValuesAndErrors

All Superinterfaces:
Function
All Known Implementing Classes:
LogicalAnd, LogicalOr

public interface FunctionOnValuesAndErrors
extends Function

Similar to FunctionOnValues, except that each argument may be a type error. This interface is for Functions that return true for Function.operatesOnTypeErrors().

Author:
lee

Method Summary
 RDFTerm call(java.util.List<RDFTerm> arguments, java.util.List<ExpressionEvaluationException> errors)
          Takes arguments; a null argument will have a corresponding non-null Exception in the errors list.
 
Methods inherited from interface org.openanzo.glitter.expression.Function
getIdentifier, operatesOnTypeErrors, operatesOnValues
 

Method Detail

call

RDFTerm call(java.util.List<RDFTerm> arguments,
             java.util.List<ExpressionEvaluationException> errors)
             throws ExpressionEvaluationException
Takes arguments; a null argument will have a corresponding non-null Exception in the errors list.

Parameters:
arguments - A list of arguments to the function. A null entry has a non-null Expcetion at the same index in the errors list.
errors - A list of Exceptions generated while evaluating arguments to the function. A null entry has a non-null value at the same index in the arguments list.
Returns:
The result of evaluating this function against the given arguments and errors
Throws:
ExpressionEvaluationException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.