Examples of arrayValue()


Examples of com.dtrules.interpreter.RArray.arrayValue()

            RArray array = (RArray)action;
            if(stack.contains(array))return;    // We have already been here.
            stack.add(array);
            try {     // As this is an array, arrayValue() will not ever throw an exception
                @SuppressWarnings({"unchecked"})
                Iterator objects = array.arrayValue().iterator();
                while(objects.hasNext()){
                    addTables((IRObject) objects.next(),stack,tables);
                }
            } catch (RulesException e) { }
        }
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

      Remove() {super("remove");}
     
      public void execute(DTState state) throws RulesException {
        IRObject  value   = state.datapop();
        RArray    rarray  = (RArray)state.datapop();
                ArrayList array   = rarray.arrayValue();
                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)){
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

                RArray    rarray  = (RArray)state.datapop();
                if(position >= rarray.size()){
                    state.datapush(RBoolean.getRBoolean(false));
                }
               
                ArrayList array   = rarray.arrayValue();
                   if(state.testState(DTState.TRACE)){
                       state.traceInfo("removed", "arrayID",rarray.getID()+"","position",position+"",null);
                   }
               
                array.remove(position);       
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

      public void execute(DTState state) throws RulesException {
        boolean asc  = state.datapop().booleanValue();
        int direction = asc ? 1 : -1;
       
        RArray rarray             = state.datapop().rArrayValue();
        ArrayList<IRObject> array = rarray.arrayValue();
       
                if(state.testState(DTState.TRACE)){
                   state.traceInfo("sort", "length",array.size()+"","arrayID",rarray.getID()+"",asc ? "true" : "false");
                }
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

     
      public void execute(DTState state) throws RulesException {
        boolean asc  = state.datapop().booleanValue();
        RName rname = state.datapop().rNameValue();
        RArray rarray  = state.datapop().rArrayValue();
        ArrayList<IRObject> array = rarray.arrayValue();
        if(state.testState(DTState.TRACE)){
                 state.traceInfo("sortentities",
                         "length",   array.size()+"",
                         "by",       rname.stringValue(),
                         "arrayID",  rarray.getID()+"",
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

    }

    public void execute(DTState state) throws RulesException {
      IRObject value = state.datapop();
      RArray rarray = (RArray) state.datapop();
      List<IRObject> array = rarray.arrayValue();
      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)) {
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

      RArray rarray = (RArray) state.datapop();
      if (position >= rarray.size()) {
        state.datapush(RBoolean.getRBoolean(false));
      }

      List<IRObject> array = rarray.arrayValue();
      if (state.testState(DTState.TRACE)) {
        state.traceInfo("removed", "arrayId", rarray.getID() + "",
            "position", position + "", null);
      }
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

    public void execute(DTState state) throws RulesException {
      boolean asc = state.datapop().booleanValue();
      int direction = asc ? 1 : -1;

      RArray rarray = state.datapop().rArrayValue();
      List<IRObject> array = rarray.arrayValue();

      if (state.testState(DTState.TRACE)) {
        state.traceInfo("sort", "length", array.size() + "", "arrayId",
            rarray.getID() + "", asc ? "true" : "false");
      }
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

    public void execute(DTState state) throws RulesException {
      boolean asc = state.datapop().booleanValue();
      RName rname = state.datapop().rNameValue();
      RArray rarray = state.datapop().rArrayValue();
      List<IRObject> array = rarray.arrayValue();
      if (state.testState(DTState.TRACE)) {
        state.traceInfo("sortentities", "length", array.size() + "",
            "by", rname.stringValue(), "arrayId", rarray.getID()
                + "", asc ? "true" : "false");
      }
View Full Code Here

Examples of com.dtrules.interpreter.RArray.arrayValue()

    }

    public void arrayExecute(DTState state) throws RulesException {
      IRObject value = state.datapop();
      RArray rarray = (RArray) state.datapop();
      ArrayList<IRObject> array = rarray.arrayValue();
      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)) {
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.