|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.syntax.abstrakt.Expression
org.openanzo.glitter.syntax.abstrakt.FunctionCall
public class FunctionCall
A FunctionCall is an Expression that represents the invocation of a particular Function against a
list of arguments.
| Constructor Summary | |
|---|---|
FunctionCall(java.lang.Class<Function> functionClass,
java.util.List<Expression> arguments)
Construct a FunctionCall from a Function (class) and a list of arguments. |
|
FunctionCall(Function f,
java.util.List<Expression> arguments)
Construct a FunctionCall from a Function and a list of arguemnts. |
|
FunctionCall(java.lang.String functionClassName,
java.util.List<Expression> arguments)
Construct a FunctionCall from the name of a Function and a list of arguments. |
|
FunctionCall(java.net.URI u,
java.util.List<Expression> arguments)
Construct a FunctionCall from the name of a function (as a URI) and a list of arguments. |
|
| Method Summary | |
|---|---|
RDFTerm |
evaluate(PatternSolution environment)
|
java.util.List<Expression> |
getArguments()
|
Function |
getFunction()
|
java.util.Set<Variable> |
getReferencedVariables()
|
boolean |
replaceArgument(Expression oldArgument,
Expression newArgument)
Replaces one argument to this function with another. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionCall(java.lang.String functionClassName,
java.util.List<Expression> arguments)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
FunctionCall from the name of a Function and a list of arguments.
functionClassName - arguments -
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
public FunctionCall(java.lang.Class<Function> functionClass,
java.util.List<Expression> arguments)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
FunctionCall from a Function (class) and a list of arguments.
functionClass - arguments -
java.lang.IllegalAccessException
java.lang.InstantiationException
public FunctionCall(Function f,
java.util.List<Expression> arguments)
FunctionCall from a Function and a list of arguemnts.
f - arguments -
public FunctionCall(java.net.URI u,
java.util.List<Expression> arguments)
throws UnknownFunctionException
FunctionCall from the name of a function (as a URI) and a list of arguments. Finds the
Function in the static FunctionRegistry.
u - arguments -
UnknownFunctionException| Method Detail |
|---|
public RDFTerm evaluate(PatternSolution environment)
throws ExpressionEvaluationException
evaluate in class Expressionenvironment - A set of bindings to use to evaluate Bindable objects in the expression.
RDFTerm that is the value of evaluating this expression.
ExpressionEvaluationException - If there is an error (e.g. a type error) in evaluating this
expression.
public boolean replaceArgument(Expression oldArgument,
Expression newArgument)
oldArgument - newArgument -
public java.util.Set<Variable> getReferencedVariables()
getReferencedVariables in class Expressionpublic Function getFunction()
public java.util.List<Expression> getArguments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||