Package org.neo4j.cypherdsl.core
Class FunctionInvocation
- java.lang.Object
-
- org.neo4j.cypherdsl.core.FunctionInvocation
-
- All Implemented Interfaces:
Visitable
,Expression
@API(status=STABLE, since="1.0") public final class FunctionInvocation extends Object implements Expression
- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FunctionInvocation.FunctionDefinition
Defines metadata for a function.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
static FunctionInvocation
create(FunctionInvocation.FunctionDefinition definition)
Creates aFunctionInvocation
based on a simple definition without any arguments.static FunctionInvocation
create(FunctionInvocation.FunctionDefinition definition, Expression... expressions)
Creates aFunctionInvocation
based on a simple definition with arguments.static FunctionInvocation
create(FunctionInvocation.FunctionDefinition definition, PatternElement pattern)
Creates a new function invocation for a pattern element.static FunctionInvocation
createDistinct(FunctionInvocation.FunctionDefinition definition, Expression... expressions)
Creates aFunctionInvocation
based on a simple definition with arguments and adds thedistinct
operator to it.String
getFunctionName()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, in, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, remainder, sorted, startsWith, subtract
-
-
-
-
Method Detail
-
create
public static FunctionInvocation create(FunctionInvocation.FunctionDefinition definition)
Creates aFunctionInvocation
based on a simple definition without any arguments.- Parameters:
definition
- The definition of a function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
create
public static FunctionInvocation create(FunctionInvocation.FunctionDefinition definition, Expression... expressions)
Creates aFunctionInvocation
based on a simple definition with arguments.- Parameters:
definition
- The definition of a functionexpressions
- The arguments to the function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
createDistinct
public static FunctionInvocation createDistinct(FunctionInvocation.FunctionDefinition definition, Expression... expressions)
Creates aFunctionInvocation
based on a simple definition with arguments and adds thedistinct
operator to it. This is only supported withFunctionInvocation.FunctionDefinition.isAggregate()
returning true.- Parameters:
definition
- The definition of a functionexpressions
- The arguments to the function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
create
public static FunctionInvocation create(FunctionInvocation.FunctionDefinition definition, PatternElement pattern)
Creates a new function invocation for a pattern element.- Parameters:
definition
- The definition of the functionpattern
- The argument to the function- Returns:
- A function invocation
- Since:
- 2021.2.3
-
getFunctionName
@API(status=INTERNAL) public String getFunctionName()
- Returns:
- The name of this function.
-
-