Package org.apache.hivemind.conditional

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


        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

        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

*/
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

        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

        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

        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

Related Classes of org.apache.hivemind.conditional.EvaluationContextImpl

Copyright © 2018 www.massapicom. 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.