Interface PersistenceDomainFunctionArgumentRenderers
public interface PersistenceDomainFunctionArgumentRenderers
An interface that gives access to the domain function argument values.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static PersistenceDomainFunctionArgumentRenderersEMPTYEmpty arguments. -
Method Summary
Modifier and Type Method Description intassignedArguments()Returns the amount of assigned arguments.ExpressiongetExpression(int position)Returns the expression of the argument at the given position.default ExpressiongetExpression(com.blazebit.domain.runtime.model.DomainFunctionArgument domainFunctionArgument)Returns the expression of the argument at the position of the given argument.com.blazebit.domain.runtime.model.DomainTypegetType(int position)Returns the actual type of the argument at the given position.default com.blazebit.domain.runtime.model.DomainTypegetType(com.blazebit.domain.runtime.model.DomainFunctionArgument domainFunctionArgument)Returns the actual of the argument at the position of the given argument.booleanrenderArgument(StringBuilder sb, int position)Renders the argument with the given position to the given string builder.default voidrenderArguments(StringBuilder sb)Renders all arguments to the given string builder.
-
Field Details
-
EMPTY
Empty arguments.
-
-
Method Details
-
getExpression
Returns the expression of the argument at the given position.- Parameters:
position- The position- Returns:
- The expression
-
getExpression
default Expression getExpression(com.blazebit.domain.runtime.model.DomainFunctionArgument domainFunctionArgument)Returns the expression of the argument at the position of the given argument.- Parameters:
domainFunctionArgument- The domain function argument- Returns:
- The expression
-
getType
com.blazebit.domain.runtime.model.DomainType getType(int position)Returns the actual type of the argument at the given position.- Parameters:
position- The position- Returns:
- The actual type
-
getType
default com.blazebit.domain.runtime.model.DomainType getType(com.blazebit.domain.runtime.model.DomainFunctionArgument domainFunctionArgument)Returns the actual of the argument at the position of the given argument.- Parameters:
domainFunctionArgument- The domain function argument- Returns:
- The actual type
-
assignedArguments
int assignedArguments()Returns the amount of assigned arguments.- Returns:
- the amount of assigned arguments
-
renderArgument
Renders the argument with the given position to the given string builder.- Parameters:
sb- The string builder to render toposition- The position- Returns:
- Whether the argument was constant
-
renderArguments
Renders all arguments to the given string builder.- Parameters:
sb- The string builder to render to
-