public class ScopedResolver extends Object implements IStringEvaluator
IStringEvaluator that supports a list of other resolvers that are
each asked in turn for evaluating the result.| Constructor and Description |
|---|
ScopedResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResolver(IStringEvaluator resolver)
Add a new resolver at the end of the search sequence.
|
static ScopedResolver |
create(IStringEvaluator... evaluator)
Create a
ScopedResolver, looking up its resolver scopes in the
order defined in the argument list (most significant first). |
Object |
evaluate(String expression,
IArgs args)
Evaluate an
expression according to the syntax used by the
implementor and return the result. |
IStringEvaluator |
popResolver() |
void |
pushResolver(IStringEvaluator resolver)
Add a new resolver at the beginning of the search sequence.
|
void |
removeResolver(IStringEvaluator resolver) |
public static ScopedResolver create(IStringEvaluator... evaluator)
ScopedResolver, looking up its resolver scopes in the
order defined in the argument list (most significant first).evaluator - public void addResolver(IStringEvaluator resolver)
resolver - public Object evaluate(String expression, IArgs args) throws EvaluationException
IStringEvaluatorexpression according to the syntax used by the
implementor and return the result.evaluate in interface IStringEvaluatorexpression - The expression to evaluate.EvaluationException - If we encounter a compile or runtime error.public IStringEvaluator popResolver()
public void pushResolver(IStringEvaluator resolver)
resolver - public void removeResolver(IStringEvaluator resolver)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.