@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 Summary
Modifier and TypeMethodDescriptiongetParameterName(Parameter<?> parameter) Gets or creates the name of a parameterbooleanisResolved(SymbolicName symbolicName) Checks whether a givensymbolic namehas been resolved in thiscontext.resolve(SymbolicName symbolicName) Resolves asymbolic nameinto a string: A symbolic name can be a placeholder without an actual value.
-
Method Details
-
getParameterName
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
Resolves asymbolic nameinto 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 thesymbolicNamehas 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
Checks whether a givensymbolic namehas been resolved in thiscontext.- Parameters:
symbolicName- the symbolic name to check- Returns:
- true if the given name has already been resolved in this context
- Since:
- 2023.0.3
-