コード例 #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
ファイル: ArgumentImpl.java プロジェクト: dajester2013/Lucee
 /**
  * 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;
 }