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

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.ExprFunction1
All Implemented Interfaces:
Expr
Direct Known Subclasses:
E_Bound, E_Datatype, E_DateTimeDay, E_DateTimeHours, E_DateTimeMinutes, E_DateTimeMonth, E_DateTimeSeconds, E_DateTimeTimezone, E_DateTimeTZ, E_DateTimeYear, E_IRI, E_IsBlank, E_IsIRI, E_IsLiteral, E_IsNumeric, E_Lang, E_LogicalNot, E_NumAbs, E_NumCeiling, E_NumFloor, E_NumRound, E_Str, E_StrEncodeForURI, E_StrLength, E_StrLowerCase, E_StrUpperCase, E_UnaryMinus, E_UnaryPlus, ExprDigest

public abstract class ExprFunction1
extends ExprFunction

A function that has a single argument


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, Expr sub)
           
 Expr applyNodeTransform(NodeTransform transform)
          Rewrite, applying a node->node transformation
abstract  Expr copy(Expr expr)
           
 Expr copySubstitute(Binding binding, boolean foldConstants)
           
 NodeValue eval(Binding binding, FunctionEnv env)
          Evaluate this expression against the binding
abstract  NodeValue eval(NodeValue v)
           
 NodeValue eval(NodeValue v, FunctionEnv env)
           
 Expr getArg()
           
 Expr getArg(int i)
           
 int hashCode()
           
 int numArgs()
           
 void visit(ExprVisitor visitor)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.expr.ExprFunction
equals, getArgs, getFunction, getFunctionIRI, getFunctionName, getFunctionPrintName, getFunctionSymbol, getOpName, 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()

getArg

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

hashCode

public int hashCode()
Overrides:
hashCode in class ExprFunction

numArgs

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

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(NodeValue v,
                      FunctionEnv env)

eval

public abstract NodeValue eval(NodeValue v)

copySubstitute

public final Expr copySubstitute(Binding binding,
                                 boolean foldConstants)
Specified by:
copySubstitute in interface Expr
Specified by:
copySubstitute in class ExprNode

applyNodeTransform

public final 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

copy

public abstract Expr copy(Expr expr)

visit

public void visit(ExprVisitor visitor)

apply

public Expr apply(ExprTransform transform,
                  Expr sub)


Licenced under the Apache License, Version 2.0