Examples of EvaluationContextImpl


Examples of com.jayway.jsonpath.internal.token.EvaluationContextImpl

    public EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration, boolean forUpdate) {
        if (logger.isDebugEnabled()) {
            logger.debug("Evaluating path: {}", toString());
        }

        EvaluationContextImpl ctx = new EvaluationContextImpl(this, rootDocument, configuration, forUpdate);
        try {
            PathRef op = ctx.forUpdate() ?  PathRef.createRoot(rootDocument) : PathRef.NO_OP;
            root.evaluate("", op, document, ctx);
        } catch (EvaluationAbortException abort){};

        return ctx;
    }
View Full Code Here

Examples of com.volantis.styling.impl.expressions.EvaluationContextImpl

        this.rootValues = StylePropertyDetails.getDefinitions()
                .getStandardDetailsSet().getRootStyleValues();

        // Create the evaluation context.
        evaluationContext = new EvaluationContextImpl(counterEngine);

        // Create the styles evaluator.
        PropertyValuesEvaluator propertyValuesEvaluator =
                new PropertyValuesEvaluator(evaluationContext);
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        try
        {
            Node node = _conditionalExpressionParser.parse(expression);

            return node.evaluate(new EvaluationContextImpl(module.getClassResolver()));
        }
        catch (RuntimeException ex)
        {
            _errorHandler.error(_log, ex.getMessage(), location, ex);
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        try
        {
            Node node = _conditionalExpressionParser.parse(expression);

            return node.evaluate(new EvaluationContextImpl(module.getClassResolver()));
        }
        catch (RuntimeException ex)
        {
            _errorHandler.error(_log, ex.getMessage(), location, ex);
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        try
        {
            Node node = _conditionalExpressionParser.parse(expression);

            return node.evaluate(new EvaluationContextImpl(module.getClassResolver()));
        }
        catch (RuntimeException ex)
        {
            _errorHandler.error(_log, ex.getMessage(), location, ex);
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

*/
public class TestEvaluationContext extends HiveMindTestCase
{
    public void testProperty()
    {
        EvaluationContext ec = new EvaluationContextImpl(new DefaultClassResolver());

        System.setProperty("property-set-for-evaluation-context", "true");

        assertEquals(true, ec.isPropertySet("property-set-for-evaluation-context"));
        assertEquals(false, ec.isPropertySet("this-property-does-not-exist"));
    }
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        assertEquals(false, ec.isPropertySet("this-property-does-not-exist"));
    }

    public void testClass()
    {
        EvaluationContext ec = new EvaluationContextImpl(new DefaultClassResolver());

        assertEquals(true, ec.doesClassExist("java.lang.Object"));
        assertEquals(true, ec.doesClassExist(EvaluationContext.class.getName()));
        assertEquals(false, ec.doesClassExist("org.apache.hivemind.NoSuchClass"));
    }
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        try
        {
            Node node = _conditionalExpressionParser.parse(expression);

            return node.evaluate(new EvaluationContextImpl(module.getClassResolver()));
        }
        catch (RuntimeException ex)
        {
            _errorHandler.error(_log, ex.getMessage(), location, ex);
View Full Code Here

Examples of org.apache.hivemind.conditional.EvaluationContextImpl

        try
        {
            Node node = _conditionalExpressionParser.parse(expression);

            return node.evaluate(new EvaluationContextImpl(module.getClassResolver()));
        }
        catch (RuntimeException ex)
        {
            _errorHandler.error(_log, ex.getMessage(), location, ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.