org.openanzo.glitter.expression.builtin
Class Bound

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

public class Bound
extends java.lang.Object
implements FunctionOnTerms

Implements the SPARQL bound function.

Author:
lee

Constructor Summary
Bound()
           
 
Method Summary
 RDFTerm call(java.util.List<Expression> args, PatternSolution environment)
          Invokes the function and determines a return value.
 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

Bound

public Bound()
Method Detail

call

public RDFTerm call(java.util.List<Expression> args,
                    PatternSolution environment)
             throws IncompatibleTypeException,
                    InvalidArgumentCountException
Description copied from interface: FunctionOnTerms
Invokes the function and determines a return value.

Specified by:
call in interface FunctionOnTerms
Parameters:
args - The (unevaluated) expressions that are passed to the function in the query.
environment - The current solution being evaluated against
Returns:
The result of evaluating this function against the arguments in the given environment
Throws:
IncompatibleTypeException
InvalidArgumentCountException

getIdentifier

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

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)

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


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