PatternBasedSqmFunctionDescriptor
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private SqmFunctionDescriptor[] |
| Access | Constructor and Description |
|---|---|
| public | MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[]
the function templates to delegate to, functions, BasicType<?> type, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes)Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template. |
| public | MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[]
the function templates to delegate to, functions, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes)Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| protected <T> SelfRenderingSqmFunction | generateSqmFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Implements abstract org. |
| public String | |
| public SqmFunctionDescriptor | |
| private static int | |
| public void |
| argumentListSignature | back to summary |
|---|---|
| private String argumentListSignature | |
| functions | back to summary |
|---|---|
| private SqmFunctionDescriptor[] functions | |
| MultipatternSqmFunctionDescriptor | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[] functions, BasicType<?> type, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes) Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template. The array must be padded with leading nulls where there is no overloaded form corresponding to lower arities.
| |
| MultipatternSqmFunctionDescriptor | back to summary |
|---|---|
| public MultipatternSqmFunctionDescriptor(String name, SqmFunctionDescriptor[] functions, TypeConfiguration typeConfiguration, FunctionParameterType... parameterTypes) Construct an instance with the given function templates where the position of each function template in the given array corresponds to the arity of the function template. The array must be padded with leading nulls where there is no overloaded form corresponding to lower arities.
| |
| first | back to summary |
|---|---|
| private static int first(SqmFunctionDescriptor[] functions) | |
| generateSqmFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmFunction Implements abstract org. Doc from org. Return an SQM node or subtree representing an invocation of this function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| getArgumentListSignature | back to summary |
|---|---|
| public String getArgumentListSignature() Overrides org.
| |
| getFunction | back to summary |
|---|---|
| public SqmFunctionDescriptor getFunction(int argumentCount) | |
| last | back to summary |
|---|---|
| private static int last(SqmFunctionDescriptor[] functions) | |
| setArgumentListSignature | back to summary |
|---|---|
| public void setArgumentListSignature(String argumentListSignature) | |