Interface StatementContext


@API(status=INTERNAL, since="2021.1.0") public sealed interface StatementContext
Context for while rendering a statement.
Since:
2021.1.0
Author:
Michael J. Simons
  • Method Details

    • getParameterName

      String getParameterName(Parameter<?> parameter)
      Gets or creates the name of a parameter
      Parameters:
      parameter - The parameter whose name should be retrieved
      Returns:
      The name of the parameter or a generated name
    • resolve

      String resolve(SymbolicName symbolicName)
      Resolves a symbolic name into a string: A symbolic name can be a placeholder without an actual value. In such cases a value is randomly generated and will stay constant for that name as long as the statement exists. In case the symbolicName has a constant value it will be returned,
      Parameters:
      symbolicName - the symbolic name to resolve
      Returns:
      a value for the given name
      Since:
      2023.0.3
    • isResolved

      boolean isResolved(SymbolicName symbolicName)
      Checks whether a given symbolic name has been resolved in this context.
      Parameters:
      symbolicName - the symbolic name to check
      Returns:
      true if the given name has already been resolved in this context
      Since:
      2023.0.3