public interface ExpressionResolver
| Modifier and Type | Method and Description |
|---|---|
Evaluator |
buildExpression(String stringExpression,
NamedType.Resolver resolver,
Set<String> imports)
This method parses a string argument and returns an
Evaluator if possible. |
default FieldReference[] |
resolve(NamedType.Resolver resolver,
String... strings) |
FieldReference |
resolve(String arg,
NamedType.Resolver resolver)
This method takes a string as an argument and builds a
FieldReference if possible. |
FieldReference resolve(String arg, NamedType.Resolver resolver)
This method takes a string as an argument and builds a FieldReference if possible.
For example, if the argument is "$c.category.id", the implementation might do the following:
arg - a String to parseresolver - a mapping function between fact name and full NamedTypeFieldReference instance or throws an IllegalArgumentExceptionIllegalArgumentException - if the argument can not be resolveddefault FieldReference[] resolve(NamedType.Resolver resolver, String... strings)
Evaluator buildExpression(String stringExpression, NamedType.Resolver resolver, Set<String> imports) throws CompilationException
This method parses a string argument and returns an Evaluator if possible.
stringExpression - - a String condition expression to parseresolver - a mapping function between fact name and NamedTypeimports - a collection of class importsEvaluator instance or throws an exceptionCompilationException - if the argument can not be compiledIllegalArgumentException - if the any parts of the argument can not be resolvedresolve(String, NamedType.Resolver)Copyright © 2021. All rights reserved.