com.hp.hpl.jena.sparql.expr
Class ExprFunctionN

java.lang.Object
  extended by com.hp.hpl.jena.sparql.expr.ExprNode
      extended by com.hp.hpl.jena.sparql.expr.ExprFunction
          extended by com.hp.hpl.jena.sparql.expr.ExprFunctionN
All Implemented Interfaces:
Expr
Direct Known Subclasses:
E_BNode, E_Call, E_Coalesce, E_Function, E_OneOfBase, E_Regex, E_StrConcat, E_StrReplace, E_StrSubstring

public abstract class ExprFunctionN
extends ExprFunction

A function which takes N arguments (N may be variable e.g. regex)


Field Summary
 
Fields inherited from interface com.hp.hpl.jena.sparql.expr.Expr
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL
 
Method Summary
 Expr apply(ExprTransform transform, ExprList exprList)
           
 Expr applyNodeTransform(NodeTransform transform)
          Rewrite, applying a node->node transformation
abstract  Expr copy(ExprList newArgs)
           
 Expr copySubstitute(Binding binding)
          Deep copy with substitution
 NodeValue eval(Binding binding, FunctionEnv env)
          Evaluate this expression against the binding
abstract  NodeValue eval(List<NodeValue> args)
           
 NodeValue eval(List<NodeValue> args, FunctionEnv env)
           
 Expr getArg(int i)
           
 List<Expr> getArgs()
           
 int numArgs()
           
 void visit(ExprVisitor visitor)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.expr.ExprFunction
equals, getFunction, getFunctionIRI, getFunctionName, getFunctionPrintName, getFunctionSymbol, getOpName, hashCode, isFunction
 
Methods inherited from class com.hp.hpl.jena.sparql.expr.ExprNode
asVar, copySubstitute, deepCopy, getConstant, getExpr, getExprVar, getGraphPattern, getVarName, getVarNamesMentioned, getVarsMentioned, isConstant, isExpr, isGraphPattern, isSatisfied, isVariable, toString, varNamesMentioned, varsMentioned
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getArg

public Expr getArg(int i)
Specified by:
getArg in class ExprFunction

numArgs

public int numArgs()
Specified by:
numArgs in class ExprFunction

getArgs

public List<Expr> getArgs()
Overrides:
getArgs in class ExprFunction

copySubstitute

public Expr copySubstitute(Binding binding)
Description copied from interface: Expr
Deep copy with substitution

Specified by:
copySubstitute in interface Expr
Specified by:
copySubstitute in class ExprNode

applyNodeTransform

public Expr applyNodeTransform(NodeTransform transform)
Description copied from interface: Expr
Rewrite, applying a node->node transformation

Specified by:
applyNodeTransform in interface Expr
Specified by:
applyNodeTransform in class ExprNode

eval

public final NodeValue eval(Binding binding,
                            FunctionEnv env)
Description copied from interface: Expr
Evaluate this expression against the binding

Specified by:
eval in interface Expr
Specified by:
eval in class ExprNode

eval

public NodeValue eval(List<NodeValue> args,
                      FunctionEnv env)

eval

public abstract NodeValue eval(List<NodeValue> args)

copy

public abstract Expr copy(ExprList newArgs)

visit

public void visit(ExprVisitor visitor)

apply

public Expr apply(ExprTransform transform,
                  ExprList exprList)


Licenced under the Apache License, Version 2.0