org.openanzo.glitter.expression.builtin
Class LogicalAnd

java.lang.Object
  extended by org.openanzo.glitter.expression.builtin.LogicalAnd
All Implemented Interfaces:
Function, FunctionOnValuesAndErrors

public class LogicalAnd
extends java.lang.Object
implements FunctionOnValuesAndErrors

Tri-state (including errors) logical-and operator (&&).

Author:
lee

Constructor Summary
LogicalAnd()
           
 
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.
 java.net.URI getIdentifier()
           
 boolean operatesOnTypeErrors()
           
 boolean operatesOnValues()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalAnd

public LogicalAnd()
Method Detail

call

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

Specified by:
call in interface FunctionOnValuesAndErrors
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

getIdentifier

public java.net.URI getIdentifier()
Specified by:
getIdentifier in interface Function
Returns:
The identifier for this function

operatesOnTypeErrors

public boolean operatesOnTypeErrors()
Specified by:
operatesOnTypeErrors in interface Function
Returns:
true if the function can process type errors as arguments; false if the function simply propagates type errors

operatesOnValues

public boolean operatesOnValues()
Specified by:
operatesOnValues in interface Function
Returns:
true if this function's arguments should be values evaluated in the context of the environment created from each set of bindings (solution); false if the function operates directly on the surface term (e.g. a hypothetical function isVariable would operate on terms and return false)


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