Package org.apache.imperius.spl.parser.expression.primary

Examples of org.apache.imperius.spl.parser.expression.primary.BasicCollectionExpression


            vbytes.add(propertySensor5);
            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
            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);
View Full Code Here


            vbytes.add(propertySensor5);
            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(new ByteConstant((byte)6));
            v.add(stringGT);
            v.add(collection);
            Expression es1 = new AnyInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)2));
            v.add(stringLT);
            v.add(collection);
            Expression es2 = new AnyInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)3));
            v.add(stringLE);
            v.add(collection);
            Expression es3 = new AnyInCollection(v,true);
            v.clear();
           
            v.add(new ByteConstant((byte)4));
            v.add(stringGE);
            v.add(collection);
            Expression es4 = new AnyInCollection(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 AnyInCollection(v,true);
View Full Code Here

            vbytes.add(propertySensor8);
            vbytes.add(propertySensor8);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(new ByteConstant((byte)10));
            v.add(stringPLUS);
            v.add(collection);
            Expression es1 = new ApplyToCollection(v,true);
View Full Code Here

            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            Expression es1 = new AvrgInCollection(v,true);
            v.clear();
            double n=((Number)es1.evaluate()).doubleValue();
View Full Code Here

            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
            Expression collection1 = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            v.add(collection1);
            Expression es1 = new EqCollections(v,true);
            v.clear();
View Full Code Here

            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            Expression es1 = new MaxInCollection(v,true);
            v.clear();
            assertTrue(((Number)es1.evaluate()).floatValue()==(float)88.44);
View Full Code Here

            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            Expression es1 = new MinInCollection(v,true);
            v.clear();
            assertTrue(((Number)es1.evaluate()).floatValue()==(float)-7.77);
View Full Code Here

            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            Expression es1 = new Sum(v,true);
            v.clear();
            assertTrue(((Number)es1.evaluate()).floatValue()==(float)79.560005);
View Full Code Here

            vbytes.add(propertySensor5);
            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
           
           
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            v.add(propertySensor3);
            v.add(collection);
            Expression es1 = new InCollection(v,true);
            v.clear();
View Full Code Here

           
            vbytes.add(propertySensor1);
            vbytes.add(propertySensor2);
            vbytes.add(propertySensor3);
            vbytes.add(propertySensor4);
            Expression collection = new BasicCollectionExpression(vbytes,null);
           
            vbytes.add(propertySensor5);
            vbytes.add(propertySensor6);
            vbytes.add(propertySensor7);
            vbytes.add(propertySensor8);
           
           
            Expression collection1 = new BasicCollectionExpression(vbytes,null);
           
            v.add(collection);
            v.add(collection1);
            Expression es1 = new SubCollection(v,true);
            v.clear();
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expression.primary.BasicCollectionExpression

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.