@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 parameterboolean
isResolved
(SymbolicName symbolicName) Checks whether a givensymbolic name
has been resolved in thiscontext
.resolve
(SymbolicName symbolicName) Resolves asymbolic name
into 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 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 thesymbolicName
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
Checks whether a givensymbolic name
has 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
-