Examples of evaluate()


Examples of org.apache.imperius.spl.parser.expressions.impl.ToLower.evaluate()

             
             
              String x=(String)es1.evaluate();
              assertTrue(x.equals(s3));
              x=(String)es2.evaluate();
              assertTrue(x.equals(s3));
                     
             
          } catch (SPLException e) {
              fail("Received evaluation exception " + e.getMessage());

Examples of org.apache.imperius.spl.parser.expressions.impl.ToMilliseconds.evaluate()

              Vector v = new Vector();
              v.add(propertySensor1);
              Expression es1 = new ToMilliseconds(v,true);
             
              Long x=(Long)es1.evaluate();
             //System.out.println("x, c1 "+x.longValue()+ " "+c1.getTimeInMillis());
              assertTrue(x.longValue()==c1.getTimeInMillis());
                      
             
          } catch (SPLException e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToREAL32.evaluate()

            s1 = s1.substring(1, s1.length()-1);
            assertTrue(((Float) eps1.evaluate()).equals(new Float(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(((Float) eps2.evaluate()).equals(new Float(s2)));
            assertTrue(((Float) eps3.evaluate()).equals(fn1));
            assertTrue(((Float) eps4.evaluate()).equals(fn2));

      //assertSame(fn1.getClass(), (efn1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToREAL64.evaluate()

            s1 = s1.substring(1, s1.length()-1);
            assertTrue(((Double) eps1.evaluate()).equals(new Double(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(((Double) eps2.evaluate()).equals(new Double(s2)));
            assertTrue(((Double) eps3.evaluate()).equals(dn1));
            assertTrue(((Double) eps4.evaluate()).equals(dn2));
           
            assertSame(dn1.getClass(), (edn1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToSINT16.evaluate()

            s1 = s1.substring(1, s1.length()-1);
            assertTrue(((Short) eps1.evaluate()).equals(new Short(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(((Short) eps2.evaluate()).equals(new Short(s2)));
            assertTrue(((Short) eps3.evaluate()).equals(sn1));
            assertTrue(((Short) eps4.evaluate()).equals(sn2));
           
            assertSame(sn1.getClass(), (es1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToSINT32.evaluate()

                ((Integer) esp1.evaluate()).equals(new Integer(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(
                ((Integer) esp2.evaluate()).equals(new Integer(s2)));
            assertTrue(((Integer) esp3.evaluate()).equals(in1));
            assertTrue(((Integer) esp4.evaluate()).equals(in2));
           
            assertSame(in1.getClass(), (ein1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToSINT64.evaluate()

            s1 = s1.substring(1, s1.length()-1);
            assertTrue(((Long) eps1.evaluate()).equals(new Long(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(((Long) eps2.evaluate()).equals(new Long(s2)));
            assertTrue(((Long) eps3.evaluate()).equals(ln1));
            assertTrue(((Long) eps4.evaluate()).equals(ln2));

      //assertSame(ln1.getClass(), (eln1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToSINT8.evaluate()

            s1 = s1.substring(1, s1.length()-1);
            assertTrue(((Byte) eps1.evaluate()).equals(new Byte(s1)));
            s2 = s2.substring(1, s2.length()-1);
            assertTrue(((Byte) eps2.evaluate()).equals(new Byte(s2)));
            assertTrue(((Byte) eps3.evaluate()).equals(sn1));
            assertTrue(((Byte) eps4.evaluate()).equals(sn2));
           
            assertSame(sn1.getClass(), (es1.evaluate()).getClass());
        } catch (SPLException e) {
            fail("Received evaluation exception " + e.getMessage());
        } catch (Exception e) {

Examples of org.apache.imperius.spl.parser.expressions.impl.ToString.evaluate()

             
             
              String x=(String)es1.evaluate();
              assertTrue(x.equals("845"));
              x=(String)es2.evaluate();
              assertTrue(x.equals("true"));
                     
             
          } catch (SPLException e) {
              fail("Received evaluation exception " + e.getMessage());

Examples of org.apache.imperius.spl.parser.expressions.impl.ToUpper.evaluate()

             
             
              String x=(String)es1.evaluate();
              assertTrue(x.equals(s3));
              x=(String)es2.evaluate();
              assertTrue(x.equals(s3));
                     
             
          } catch (SPLException e) {
              fail("Received evaluation exception " + e.getMessage());
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.