public class FunctionExpression extends AbstractExpression implements FunctionTypes
operatorFUNCTION_ABS, FUNCTION_ACOS, FUNCTION_ASIN, FUNCTION_ATAN, FUNCTION_ATAN2, FUNCTION_AVG, FUNCTION_BOUND, FUNCTION_CEIL, FUNCTION_COALESCE, FUNCTION_CONCAT, FUNCTION_CONTAINS, FUNCTION_COS, FUNCTION_COUNT, FUNCTION_CUSTOM, FUNCTION_DATATYPE, FUNCTION_DAY, FUNCTION_EXISTS, FUNCTION_EXP, FUNCTION_EXP10, FUNCTION_FLOOR, FUNCTION_HOURS, FUNCTION_IF, FUNCTION_IN, FUNCTION_IRI, FUNCTION_IS_BLANK, FUNCTION_ISIRI, FUNCTION_ISLITERAL, FUNCTION_ISNUMERIC, FUNCTION_ISURI, FUNCTION_LCASE, FUNCTION_LOG, FUNCTION_LOG10, FUNCTION_MAX, FUNCTION_MIN, FUNCTION_MINUTES, FUNCTION_MONTH, FUNCTION_NOT_EXISTS, FUNCTION_NOTIN, FUNCTION_NOW, FUNCTION_POW, FUNCTION_REGEX, FUNCTION_REPLACE, FUNCTION_ROUND, FUNCTION_SAMETERM, FUNCTION_SECONDS, FUNCTION_SIN, FUNCTION_SQRT, FUNCTION_STR, FUNCTION_STRAFTER, FUNCTION_STRBEFORE, FUNCTION_STRENDS, FUNCTION_STRLEN, FUNCTION_STRSTARTS, FUNCTION_SUBSTR, FUNCTION_SUM, FUNCTION_TAN, FUNCTION_TIMEZONE, FUNCTION_TZ, FUNCTION_UCASE, FUNCTION_YEAR| Constructor and Description |
|---|
FunctionExpression(java.util.List<Expression> arguments,
PrefixedName function)
Constructor.
|
FunctionExpression(java.util.List<Expression> arguments,
short fn)
Constructor.
|
FunctionExpression(java.util.List<Expression> arguments,
java.lang.String function)
Constructor.
|
FunctionExpression(java.util.List<Expression> arguments,
java.lang.String function,
java.lang.String prefix)
Constructor.
|
FunctionExpression(PrefixedName function)
Constructor.
|
FunctionExpression(PrefixedName function,
Expression... arguments)
Constructor.
|
FunctionExpression(short fn)
Constructor.
|
FunctionExpression(short fn,
Expression... arguments)
Constructor.
|
FunctionExpression(java.lang.String function)
Constructor.
|
FunctionExpression(java.lang.String function,
Expression... arguments)
Constructor.
|
FunctionExpression(java.lang.String function,
java.lang.String prefix)
Constructor.
|
FunctionExpression(java.lang.String function,
java.lang.String prefix,
Expression... arguments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Expression expr)
Add an argument.
|
void |
appendContent(java.lang.String prefix,
java.lang.StringBuilder buf)
Append the expression content to a buffer.
|
boolean |
checkValidity(ISparqlRequestGroup request)
Return true if the expression is valid.
|
java.util.List<Expression> |
getArguments()
Return the list of arguments.
|
short |
getFunction()
Return the function type.
|
static short |
getFunction(java.lang.String function)
Return the function type corresponding to a String.
|
java.lang.String |
getFunctionAsString()
Return the function name as a String.
|
java.lang.String |
getFunctionName()
Return the function name.
|
java.util.Set<java.lang.String> |
getOutputVariables()
Return the variables which are in output of the expression.
|
java.util.Set<java.lang.String> |
getVariables()
Return the variables used in the expression.
|
boolean |
isSimpleExpression()
Return true.
|
void |
setFunction(java.lang.String function)
Set the function name.
|
getOperator, setOperator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, getContent, getOperatorAsString, getOperatorAsStringpublic FunctionExpression(short fn)
fn - the function typeFunctionTypespublic FunctionExpression(java.util.List<Expression> arguments, short fn)
arguments - the function argumentsfn - the function typeFunctionTypespublic FunctionExpression(short fn,
Expression... arguments)
fn - the function typearguments - the function argumentsFunctionTypespublic FunctionExpression(java.util.List<Expression> arguments, java.lang.String function)
arguments - the function argumentsfunction - the function namepublic FunctionExpression(java.lang.String function,
Expression... arguments)
function - the function namearguments - the function argumentspublic FunctionExpression(java.util.List<Expression> arguments, java.lang.String function, java.lang.String prefix)
arguments - the function argumentsfunction - the function nameprefix - the function prefixpublic FunctionExpression(java.util.List<Expression> arguments, PrefixedName function)
arguments - the function argumentsfunction - the function name and prefixpublic FunctionExpression(java.lang.String function,
java.lang.String prefix,
Expression... arguments)
function - the function nameprefix - the function prefixarguments - the function argumentspublic FunctionExpression(PrefixedName function, Expression... arguments)
function - the function name and prefixarguments - the function argumentspublic FunctionExpression(java.lang.String function)
function - the function namepublic FunctionExpression(java.lang.String function,
java.lang.String prefix)
function - the function nameprefix - the function prefixpublic FunctionExpression(PrefixedName function)
function - the function name and prefixpublic void setFunction(java.lang.String function)
function - the function namepublic void addArgument(Expression expr)
expr - the argumentpublic java.util.List<Expression> getArguments()
public java.util.Set<java.lang.String> getOutputVariables()
getOutputVariables in interface Expressionpublic java.util.Set<java.lang.String> getVariables()
getVariables in interface Expressionpublic short getFunction()
public java.lang.String getFunctionName()
public static short getFunction(java.lang.String function)
function - the function nameFunctionTypespublic java.lang.String getFunctionAsString()
public boolean isSimpleExpression()
isSimpleExpression in interface Expressionpublic boolean checkValidity(ISparqlRequestGroup request)
checkValidity in interface Expressionrequest - the requestpublic void appendContent(java.lang.String prefix,
java.lang.StringBuilder buf)
appendContent in interface Expressionprefix - the prefixbuf - the bufferCopyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence