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 PersistenceDomainFunctionArgumentRenderers EMPTY
    Empty arguments.
  • Method Summary

    Modifier and Type Method Description
    int assignedArguments()
    Returns the amount of assigned arguments.
    Expression getExpression​(int position)
    Returns the expression of the argument at the given position.
    default Expression getExpression​(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.DomainType getType​(int position)
    Returns the actual type of the argument at the given position.
    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.
    boolean renderArgument​(StringBuilder sb, int position)
    Renders the argument with the given position to the given string builder.
    default void renderArguments​(StringBuilder sb)
    Renders all arguments to the given string builder.
  • Field Details

  • Method Details

    • getExpression

      Expression getExpression​(int position)
      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

      boolean renderArgument​(StringBuilder sb, int position)
      Renders the argument with the given position to the given string builder.
      Parameters:
      sb - The string builder to render to
      position - The position
      Returns:
      Whether the argument was constant
    • renderArguments

      default void renderArguments​(StringBuilder sb)
      Renders all arguments to the given string builder.
      Parameters:
      sb - The string builder to render to