Package com.dtrules.interpreter

Examples of com.dtrules.interpreter.IRObject.postFix()


      public void execute(DTState state) throws RulesException {
        IRObject  value = state.datapop();
        RArray rarray  = state.datapop().rArrayValue();
        if(state.testState(DTState.TRACE)){
                    state.traceInfo("addto", "arrayID",rarray.getID()+"",value.postFix());
                }
        rarray.add(value);
      }
    }
   
View Full Code Here


      public void execute(DTState state) throws RulesException {
        IRObject value = state.datapop();
        int position = state.datapop().intValue();
                RArray rarray = state.datapop().rArrayValue();
        if(state.testState(DTState.TRACE)){
                    state.traceInfo("addat", "arrayID",rarray.getID()+"", "index",position+"",value.postFix());
                }
        rarray.add(position, value);
       
      }
    }
View Full Code Here

                boolean removed = false;
                if(value!=null){
          for(int i=0; i<array.size();){
            if(value.equals((IRObject)array.get(i))){
                            if(state.testState(DTState.TRACE)){
                                state.traceInfo("removed", "arrayID",rarray.getID()+"",value.postFix());
                            }
              array.remove(i);
                            removed = true;
            } else {
              i++;
View Full Code Here

            return;
          }
        }
        rArray.add(value);
                if(state.testState(DTState.TRACE)){
                    state.traceInfo("addto", "arrayId",rArray.getID()+"",value.postFix());
                }

      }
    }   
View Full Code Here

                 if(table.containsKey(key)){
                    IRObject o = table.getValue(key);
                    valueArray.add(o);
                    if (state.testState(DTState.TRACE)) {
                        state.traceInfo("addto", "arrayId", valueArray.getID() + "",
                                o.postFix());
                    }

                 }
             }
             state.datapush(valueArray);
View Full Code Here

    public void execute(DTState state) throws RulesException {
      IRObject value = state.datapop();
      RArray rarray = state.datapop().rArrayValue();
      if (state.testState(DTState.TRACE)) {
        state.traceInfo("addto", "arrayId", rarray.getID() + "",
            value.postFix());
      }
      rarray.add(value);
    }
  }
View Full Code Here

      IRObject value = state.datapop();
      int position = state.datapop().intValue();
      RArray rarray = state.datapop().rArrayValue();
      if (state.testState(DTState.TRACE)) {
        state.traceInfo("addat", "arrayId", rarray.getID() + "",
            "index", position + "", value.postFix());
      }
      rarray.add(position, value);

    }
  }
View Full Code Here

      if (value != null) {
        for (int i = 0; i < array.size();) {
          if (value.equals((IRObject) array.get(i))) {
            if (state.testState(DTState.TRACE)) {
              state.traceInfo("removed", "arrayId",
                  rarray.getID() + "", value.postFix());
            }
            array.remove(i);
            removed = true;
          } else {
            i++;
View Full Code Here

        }
      }
      rArray.add(value);
      if (state.testState(DTState.TRACE)) {
        state.traceInfo("addto", "arrayId", rArray.getID() + "",
            value.postFix());
      }

    }
  }
View Full Code Here

      while (im < state.ddepth()) {                                        // copy elements to the array
        IRObject o = state.getds(im++);
          newarray.add(o);
        if (state.testState(DTState.TRACE)) {
                  state.traceInfo("addto", "arrayId", newarray.getID() + "",
                          o.postFix());
              }
      }
     
      while (newdepth < state.ddepth())
        state.datapop(); // toss elements AND mark
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.