E
- Expression typeR
- Resolved expression type@FunctionalInterface public static interface Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>
Expression
into another Expression
type.ExpressionResolver
Modifier and Type | Method and Description |
---|---|
Optional<R> |
resolve(E expression,
ExpressionResolver.ResolutionContext context)
Try to resolve given
expression . |
Optional<R> resolve(E expression, ExpressionResolver.ResolutionContext context) throws Expression.InvalidExpressionException
expression
. If the resolver is not able to resolve given expression type,
an empty Optional must be returned and the expression resolution engine should delegate the resolution to the
next resolver, if available.
Concrete resolution environments could provide a more specialized ExpressionResolver.ResolutionContext
interface.
expression
- Expression to resolvecontext
- Resolution contextExpression.InvalidExpressionException
- An error occurred during expression resolutionCopyright © 2019 The Holon Platform. All rights reserved.