public interface ResolvingContext
Modifier and Type | Method and Description |
---|---|
<R,E extends Expression<R>> |
resolvedValueOf(E expression)
Retrieves the resolved value for the expression.
|
<E extends Expression<?>> |
resolves(E expression)
Checks if the expression is resolved within this context.
|
int |
size()
Retrieves the amount of resolved values which are stored in the context.
|
<E extends Expression<?>> boolean resolves(E expression)
true
, then it is
safe to call the resolvedValueOf(Expression)
method. An expression is seen as resolved, either if the
context knows already the resolved value or, if the given expression is a resolved expression by itself.expression
- the expression for which to check if it is resolvedtrue
if the expression is resolved within the context, false
if not<R,E extends Expression<R>> R resolvedValueOf(E expression)
An IllegalArgumentException
will be thrown, if the expression cannot be resolved within the context.
Therefore it is mandatory to call the resolves(Expression)
method first to check if the expression is
resolved in the context.
expression
- the expression for which to retrieve the resolved valueint size()