intarsys runtime library

de.intarsys.tools.expression
Class ContainerResolver

java.lang.Object
  extended by de.intarsys.tools.expression.ContainerResolver
All Implemented Interfaces:
IStringEvaluator
Direct Known Subclasses:
ArrayResolver, DynamicArgsResolver, EntityResolver, ListResolver, MapResolver, NLSMessageResolver, NLSStringResolver, ReflectiveResolver, StaticArgEntriesResolver, StaticArgsResolver, VariableNamespacesResolver

public abstract class ContainerResolver
extends Object
implements IStringEvaluator

A common superclass for implementing an IStringEvaluator that can navigate along a "." separated path in an expression.


Constructor Summary
ContainerResolver()
           
ContainerResolver(char separator)
           
 
Method Summary
 Object evaluate(String expression, IArgs args)
          Evaluate an expression according to the syntax used by the implementor and return the result.
 IStringEvaluator getExceptionResolver()
           
 char getSeparator()
           
 void setExceptionResolver(IStringEvaluator exceptionResolver)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerResolver

public ContainerResolver()

ContainerResolver

public ContainerResolver(char separator)
Method Detail

evaluate

public final Object evaluate(String expression,
                             IArgs args)
                      throws EvaluationException
Description copied from interface: IStringEvaluator
Evaluate an expression according to the syntax used by the implementor and return the result.

Specified by:
evaluate in interface IStringEvaluator
Parameters:
expression - The expression to evaluate.
Returns:
The result object.
Throws:
EvaluationException - If we encounter a compile or runtime error.

getExceptionResolver

public IStringEvaluator getExceptionResolver()

getSeparator

public final char getSeparator()

setExceptionResolver

public void setExceptionResolver(IStringEvaluator exceptionResolver)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.