E- Expression type
R- Resolved expression type
public class CallbackExpressionResolver<E extends Expression,R extends Expression> extends Object implements ExpressionResolver<E,R>
ExpressionResolverwhich uses a
Expression.ExpressionResolverFunctionin conjunction with expression and resolution type to create the resolver implementation.
ExpressionResolver.ExpressionResolverBuilder<C extends ExpressionResolver.ExpressionResolverBuilder<C>>, ExpressionResolver.ExpressionResolverHandler, ExpressionResolver.ExpressionResolverProvider, ExpressionResolver.ExpressionResolverSupport, ExpressionResolver.ResolutionContext
|Constructor and Description|
|Modifier and Type||Method and Description|
Get the expression type which this resolver can handle.
Get the resolved expression type
Try to resolve given
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>
expression- Expression to resolve
context- Resolution context
Expression.InvalidExpressionException- An error occurred during expression resolution
Copyright © 2019 The Holon Platform. All rights reserved.