예제 #1
0
 public Struct getArgumentsAsStruct() {
   StructImpl sct = new StructImpl();
   if (arguments != null) {
     Iterator<Entry<String, String>> it = arguments.entrySet().iterator();
     Entry<String, String> e;
     while (it.hasNext()) {
       e = it.next();
       sct.setEL(e.getKey(), e.getValue());
     }
   }
   return sct;
 }
예제 #2
0
 /**
  * converts a argument scope to a regular struct
  *
  * @param arg argument scope to convert
  * @return resulting struct
  */
 public static Struct toStruct(Argument arg) {
   Struct trg = new StructImpl();
   StructImpl.copy(arg, trg, false);
   return trg;
 }