Package org.apache.imperius.spl.parser.expressions.impl

Examples of org.apache.imperius.spl.parser.expressions.impl.AllInCollection


            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(new ByteConstant((byte)0));
            v.add(stringGT);
            v.add(collection);
            Expression es1 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)10));
            v.add(stringLT);
            v.add(collection);
            Expression es2 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)8));
            v.add(stringLE);
            v.add(collection);
            Expression es3 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)1));
            v.add(stringGE);
            v.add(collection);
            Expression es4 = new AllInCollection(v,true);
            v.clear();
           
           


            assertTrue(((Boolean)es1.evaluate()).booleanValue());
            assertTrue(((Boolean)es2.evaluate()).booleanValue());
            assertTrue(((Boolean)es3.evaluate()).booleanValue());
            assertTrue(((Boolean)es4.evaluate()).booleanValue());
           
           
           
            propertySensor1 = new BooleanConstant(true);
          propertySensor2 = new BooleanConstant(true);
          propertySensor3 = new BooleanConstant(true);
          propertySensor4 = new BooleanConstant(true);
         
         
          vbytes.clear();
         
          vbytes.add(propertySensor1);
            vbytes.add(propertySensor2);
            vbytes.add(propertySensor3);
            vbytes.add(propertySensor4);
           
           
            collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(new BooleanConstant(false));
            v.add(stringLOR);
            v.add(collection);
            Expression es5 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new BooleanConstant(true));
            v.add(stringLAND);
            v.add(collection);
            Expression es6 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new BooleanConstant(false));
            v.add(stringBXOR);
            v.add(collection);
            Expression es7 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new BooleanConstant(false));
            v.add(stringNOT_EQUAL);
            v.add(collection);
            Expression es8 = new AllInCollection(v,true);
            v.clear();
           
            v.add(new BooleanConstant(true));
            v.add(stringEQUAL);
            v.add(collection);
            Expression es9 = new AllInCollection(v,true);
            v.clear();
           
           


            assertTrue(((Boolean)es5.evaluate()).booleanValue());
            assertTrue(((Boolean)es6.evaluate()).booleanValue());
            assertTrue(((Boolean)es7.evaluate()).booleanValue());
            assertTrue(((Boolean)es8.evaluate()).booleanValue());
            assertTrue(((Boolean)es9.evaluate()).booleanValue());
           
           
           
           
        } catch (SPLException e) {
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expressions.impl.AllInCollection

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.