Package com.dtrules.session

Examples of com.dtrules.session.DTState.datapop()


        }
       
        for(int i=0;i<tests.length;i+=2){
            try{
               session.execute(tests[i]);
               String result = state.datapop().stringValue();
               if(tests[i+1].equals(result.trim())){
                   state.debug("test: << "+tests[i]+" >> expected: "+tests[i+1]+" --passed\n");
               }else{
                   state.debug("test: << "+tests[i]+" >> expected: "+tests[i+1]+" result:"+result+" --FAILED\n");
               }
View Full Code Here


   
    // If we are setting an attribute
    if(name.equals("def")){
      trace.session.execute(body);
      String     name = attributes.get("name");
      IRObject   v   = ds.datapop();
      IREntity    e    = getEntity(trace);
      e.put(trace.session, RName.getRName(name), v);
    }
 
    for(TraceNode child : children){
View Full Code Here

     
      if(body.length()==0){
          v = RNull.getRNull();
      }else{
              trace.session.execute(body);
            v = ds.datapop();
      }

      IREntity    e    = getEntity(trace);
      RName       rn   = RName.getRName(name);
      e.put(trace.session, rn, v);
View Full Code Here

           
            if(body.length()==0){
                v = RNull.getRNull();
            }else{
                trace.session.execute(body);
                v = ds.datapop();
            }

            ar.add(v);
    }
   
View Full Code Here

           
            if(body.length()==0){
                v = RNull.getRNull();
            }else{
                trace.session.execute(body);
                v = ds.datapop();
            }
            ds.datapush(ar);
            ds.datapush(v);
            ds.getSession().execute("remove");
            ds.datapop();
View Full Code Here

                v = ds.datapop();
            }
            ds.datapush(ar);
            ds.datapush(v);
            ds.getSession().execute("remove");
            ds.datapop();
    }
   
        // Remove a value from an array at a location
        if(name.equals("remove")){
            int    id = Integer.parseInt(attributes.get("arrayId"));
View Full Code Here

            if(ar==null){   // Now this shouldn't happen, but if it does, create the array
                ar = RArray.newArrayTraceInterface(id, true, false);
                trace.arraytable.put(id, ar);
            }
            trace.session.execute(body);
            IRObject i = ds.datapop();
           
            ds.datapush(ar);
            ds.datapush(i);
            ds.getSession().execute("removeat");
            ds.datapop();
View Full Code Here

            IRObject i = ds.datapop();
           
            ds.datapush(ar);
            ds.datapush(i);
            ds.getSession().execute("removeat");
            ds.datapop();
        }
   
   
    for(TraceNode child : children){
      if(child.setState(trace, position)){
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.