Package railo.runtime.dump

Examples of railo.runtime.dump.DumpTable


     * @param pageContext
     * @param access
     * @return html output
     */
    public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp, int access) {
      DumpTable table = new DumpTable("component","#99cc99","#ccffcc","#000000");
        table.setTitle("Component "+getCallPath()+""+(" "+StringUtil.escapeHTML(top.properties.dspName)));
        table.setComment("Only the functions and data members that are accessible from your location are displayed");
        if(top.properties.extend.length()>0)table.appendRow(1,new SimpleDumpData("Extends"),new SimpleDumpData(top.properties.extend));
        if(top.properties.hint.trim().length()>0)table.appendRow(1,new SimpleDumpData("Hint"),new SimpleDumpData(top.properties.hint));
       
        DumpTable content = _toDumpData(top,pageContext,maxlevel,dp,access);
        if(!content.isEmpty())table.appendRow(1,new SimpleDumpData(""),content);
        return table;
    }
View Full Code Here


    Collection.Key[] keys= cw.keys();
   
   
   
    DumpTable[] accesses=new DumpTable[4];
    accesses[Component.ACCESS_PRIVATE] = new DumpTable("#ff6633","#ff9966","#000000");
    accesses[Component.ACCESS_PRIVATE].setTitle("private");
    accesses[Component.ACCESS_PRIVATE].setWidth("100%");
    //accesses[Component.ACCESS_PRIVATE].setRow(1,"100%");
    accesses[Component.ACCESS_PACKAGE] = new DumpTable("#ff9966","#ffcc99","#000000");
    accesses[Component.ACCESS_PACKAGE].setTitle("package");
    accesses[Component.ACCESS_PACKAGE].setWidth("100%");
    accesses[Component.ACCESS_PUBLIC] = new DumpTable("#ffcc99","#ffffcc","#000000");
    accesses[Component.ACCESS_PUBLIC].setTitle("public");
    accesses[Component.ACCESS_PUBLIC].setWidth("100%");
    accesses[Component.ACCESS_REMOTE] = new DumpTable("#ccffcc","#ffffff","#000000");
    accesses[Component.ACCESS_REMOTE].setTitle("remote");
    accesses[Component.ACCESS_REMOTE].setWidth("100%");
   
    Collection.Key key;
    for(int i=0;i<keys.length;i++) {
      key=keys[i];
      int a=ci.getAccess(key);
      DumpTable box=accesses[a];
      Object o=cw.get(key,null);
      if(o==ci)o="[this]";
      if(DumpUtil.keyValid(dp,maxlevel, key))
        box.appendRow(1,new SimpleDumpData(key.getString()),DumpUtil.toDumpData(o,pc,maxlevel,dp));
    }
   
   
    DumpTable table=new DumpTable("#ffffff","#cccccc","#000000");
   
    // properties
    if(ci.top.properties.persistent || ci.top.properties.accessors){
      Property[] properties=ci.getProperties(false);
      DumpTable prop = new DumpTable("#99cc99","#ccffcc","#000000");

      prop.setTitle("Properties");
      prop.setWidth("100%");
      Property p;
      Object child;
      for(int i=0;i<properties.length;i++) {
        p=properties[i];
        child = ci.scope.get(KeyImpl.init(p.getName()),null);
        DumpData dd;
        if(child instanceof Component) {
          DumpTable t = new DumpTable("component","#99cc99","#ffffff","#000000");
          t.appendRow(1,new SimpleDumpData("Component"),new SimpleDumpData(((Component)child).getCallName()));
          dd=t;
         
        }
        else
          dd=DumpUtil.toDumpData(child, pc, maxlevel-1, dp);
View Full Code Here

   
   
   
    @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
      DumpTable table = new DumpTable("interface","#99cc99","#ffffff","#000000");
        table.setTitle("Interface "+callPath+""+(" "+StringUtil.escapeHTML(dspName)));
        table.setComment("Interface can not directly invoked as a object");
        //if(top.properties.extend.length()>0)table.appendRow(1,new SimpleDumpData("Extends"),new SimpleDumpData(top.properties.extend));
        //if(top.properties.hint.trim().length()>0)table.appendRow(1,new SimpleDumpData("Hint"),new SimpleDumpData(top.properties.hint));
       
        //table.appendRow(1,new SimpleDumpData(""),_toDumpData(top,pageContext,maxlevel,access));
        return table;
View Full Code Here

  public DumpData toDumpData(PageContext pageContext,int maxlevel, DumpProperties dp) {
    maxlevel--;
    Iterator<Object> it = pageSources.keySet().iterator();
   
   
    DumpTable table = new DumpTable("#FFCC00","#FFFF00","#000000");
    table.setTitle("Page Source Pool");
    table.appendRow(1,new SimpleDumpData("Count"),new SimpleDumpData(pageSources.size()));
    while(it.hasNext()) {
        PageSource ps= pageSources.get(it.next());
        DumpTable inner = new DumpTable("#FFCC00","#FFFF00","#000000");
      inner.setWidth("100%");
      inner.appendRow(1,new SimpleDumpData("source"),new SimpleDumpData(ps.getDisplayPath()));
      inner.appendRow(1,new SimpleDumpData("last access"),DumpUtil.toDumpData(new DateTimeImpl(pageContext,ps.getLastAccessTime(),false), pageContext,maxlevel,dp));
      inner.appendRow(1,new SimpleDumpData("access count"),new SimpleDumpData(ps.getAccessCount()));
      table.appendRow(1,new SimpleDumpData("Sources"),inner);
    }
    return table;
  }
View Full Code Here

        return true;
    }

    @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table = new DumpTable("com","#ff3300","#ff9966","#660000");
    table.appendRow(1,new SimpleDumpData("COM Object"),new SimpleDumpData(name));
    return table;
    }
View Full Code Here

    return file;
  }

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table=new DumpTable("#cccc66","#cccc99","#000000");
    table.setTitle(file.getAbsolutePath());
    table.appendRow(1, new SimpleDumpData("min (ms)"), new SimpleDumpData(min));
    table.appendRow(1, new SimpleDumpData("avg (ms)"), new SimpleDumpData(getAverageExecutionTime()));
    table.appendRow(1, new SimpleDumpData("max (ms)"), new SimpleDumpData(max));
    table.appendRow(1, new SimpleDumpData("total (ms)"), new SimpleDumpData(all));
    return table;
  }
View Full Code Here

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    Collection.Key[] keys=keys();
    maxlevel--;
    DumpTable table = new DumpTable("xml","#999966","#cccc99","#000000");
    table.setTitle("Struct (XML Attributes)");

    int maxkeys=dp.getMaxKeys();
    int index=0;
    Collection.Key k;
    for(int i=0;i<keys.length;i++) {
      k=keys[i];
     
      if(DumpUtil.keyValid(dp,maxlevel, k)){
        if(maxkeys<=index++)break;
        table.appendRow(1,new SimpleDumpData(k.getString()),DumpUtil.toDumpData(get(k.getString(),null), pageContext,maxlevel,dp));
      }
    }
    return table;
  }
View Full Code Here

      return DumpUtil.MAX_LEVEL_REACHED;
    }
    maxlevel--;
    // Document
    if(node instanceof Document) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Document");
      table.appendRow(1,new SimpleDumpData("XmlComment"),new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlRoot"),  DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLROOT,null), pageContext,maxlevel,props));
      return table;
     
    }
    // Element
    if(node instanceof Element) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Element");
      table.appendRow(1,new SimpleDumpData("xmlName"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNAME,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlNsPrefix")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSPREFIX,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlNsURI"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSURI,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlText"),    DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLTEXT,null), pageContext,maxlevel,props));
      table.appendRow(1,new SimpleDumpData("XmlComment")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlAttributes"),DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLATTRIBUTES,null), pageContext,maxlevel,props));
      table.appendRow(1,new SimpleDumpData("XmlChildren"),  DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCHILDREN,null), pageContext,maxlevel,props));
      return table;
     
    }
    // Attr
    if(node instanceof Attr) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Attr");
      table.appendRow(1,new SimpleDumpData("xmlName"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNAME,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlValue"),  DumpUtil.toDumpData(((Attr)node).getValue(), pageContext,maxlevel,props));
      table.appendRow(1,new SimpleDumpData("XmlType")new SimpleDumpData(XMLUtil.getTypeAsString(node,true)));
     
      return table;
     
    }
    // Node
    DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
    table.setTitle("XML Node ("+ListLast.call(null,node.getClass().getName(),".")+")");
    table.appendRow(1,new SimpleDumpData("xmlName"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNAME,null).toString()));
    table.appendRow(1,new SimpleDumpData("XmlNsPrefix")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSPREFIX,null).toString()));
    table.appendRow(1,new SimpleDumpData("XmlNsURI"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSURI,null).toString()));
    table.appendRow(1,new SimpleDumpData("XmlText"),    DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLTEXT,null), pageContext,maxlevel,props));
    table.appendRow(1,new SimpleDumpData("XmlComment")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
    table.appendRow(1,new SimpleDumpData("XmlAttributes"),DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLATTRIBUTES,null), pageContext,maxlevel,props));
    table.appendRow(1,new SimpleDumpData("XmlChildren"),  DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCHILDREN,null), pageContext,maxlevel,props));
     
    table.appendRow(1,new SimpleDumpData("XmlType")new SimpleDumpData(XMLUtil.getTypeAsString(node,true)));
   
    return table; 
  }
View Full Code Here

  }

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    Key[] keys = keys();
    DumpTable table = new DumpTable("struct","#9999ff","#ccccff","#000000");
    table.setTitle("Struct");
    maxlevel--;
    int maxkeys=dp.getMaxKeys();
    int index=0;
    for(int i=0;i<keys.length;i++) {
      Key key=keys[i];
      if(maxkeys<=index++)break;
      if(DumpUtil.keyValid(dp,maxlevel, key))
        table.appendRow(1,new SimpleDumpData(key.getString()),DumpUtil.toDumpData(get(key,null), pageContext,maxlevel,dp));
    }
    return table;
  }
View Full Code Here

  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    maxlevel--;
       
   
   
    DumpTable htmlBox = new DumpTable("mapping","#ff6600","#ffcc99","#000000");
    htmlBox.setTitle("Mapping");
    htmlBox.appendRow(1,new SimpleDumpData("virtual"),new SimpleDumpData(virtual));
    htmlBox.appendRow(1,new SimpleDumpData("physical"),DumpUtil.toDumpData(strPhysical,pageContext,maxlevel,dp));
    htmlBox.appendRow(1,new SimpleDumpData("archive"),DumpUtil.toDumpData(strArchive,pageContext,maxlevel,dp));
    htmlBox.appendRow(1,new SimpleDumpData("inspect"),new SimpleDumpData(ConfigWebUtil.inspectTemplate(getInspectTemplateRaw(),"")));
    htmlBox.appendRow(1,new SimpleDumpData("physicalFirst"),new SimpleDumpData(Caster.toString(physicalFirst)));
    htmlBox.appendRow(1,new SimpleDumpData("readonly"),new SimpleDumpData(Caster.toString(readonly)));
    htmlBox.appendRow(1,new SimpleDumpData("hidden"),new SimpleDumpData(Caster.toString(hidden)));
    htmlBox.appendRow(1,new SimpleDumpData("appmapping"),new SimpleDumpData(Caster.toBoolean(appMapping)));
    htmlBox.appendRow(1,new SimpleDumpData("toplevel"),new SimpleDumpData(Caster.toString(topLevel)));
    htmlBox.appendRow(1,new SimpleDumpData("ClassLoaderMaxElements"),new SimpleDumpData(Caster.toString(classLoaderMaxElements)));
    return htmlBox;
    }
View Full Code Here

TOP

Related Classes of railo.runtime.dump.DumpTable

Copyright © 2018 www.massapicom. 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.