Examples of StructImpl


Examples of railo.runtime.type.StructImpl

    // MUST this is just a workaround
    if(pc==null){
      pcCreated=true;
      ConfigWeb config = (ConfigWeb) ThreadLocalPageContext.getConfig();
      Pair[] parr = new Pair[0];
      pc=ThreadUtil.createPageContext(config, DevNullOutputStream.DEV_NULL_OUTPUT_STREAM, "localhost", "/","", new Cookie[0], parr, parr, new StructImpl());
    }
   
    // reading fails for serialized data from Railo version 4.1.2.002
    String name = in.readUTF();
   
View Full Code Here

Examples of railo.runtime.type.StructImpl

    }
  }

  public void writeExternal(ObjectOutput out) throws IOException {
    ComponentWrap cw = new ComponentWrap(Component.ACCESS_PRIVATE,this)
        Struct _this=new StructImpl();
    Struct _var=new StructImpl();
   
   
    // this scope (removing all UDFs)
    Object member;
      {
        Iterator<Entry<Key, Object>> it = cw.entryIterator();
          Entry<Key, Object> e;
          while(it.hasNext()) {
              e = it.next();
              member = e.getValue();
              if(member instanceof UDF)continue;
              _this.setEL(e.getKey(), member);
          }
    }
   
     
      // variables scope (removing all UDFs and key "this")
      {
          ComponentScope scope = getComponentScope();
          Iterator<Entry<Key, Object>> it = scope.entryIterator();
            Entry<Key, Object> e;
          Key k;
          while(it.hasNext()) {
            e = it.next();
            k = e.getKey();
                if(KeyConstants._THIS.equalsIgnoreCase(k))continue;
                member = e.getValue();
                if(member instanceof UDF)continue;
              _var.setEL(e.getKey(), member);
            }
        }
     
      out.writeUTF(getAbsName());
    out.writeUTF(ComponentUtil.md5(cw));
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.