Search in sources :

Example 11 with DumpTable

use of lucee.runtime.dump.DumpTable in project Lucee by lucee.

the class StaticScope method _toDumpData.

DumpTable _toDumpData(ComponentImpl ci, PageContext pc, int maxlevel, DumpProperties dp, int access) {
    maxlevel--;
    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_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%");
    Iterator<Entry<Key, Member>> it = all(new HashMap<Key, Member>()).entrySet().iterator();
    Entry<Key, Member> e;
    while (it.hasNext()) {
        e = it.next();
        int a = access(pc, e.getValue().getAccess());
        DumpTable box = accesses[a];
        Object o = e.getValue().getValue();
        if (DumpUtil.keyValid(dp, maxlevel, e.getKey()))
            box.appendRow(1, new SimpleDumpData(e.getKey().getString()), DumpUtil.toDumpData(o, pc, maxlevel, dp));
    }
    DumpTable table = new DumpTable("#ffffff", "#cccccc", "#000000");
    if (!accesses[Component.ACCESS_PUBLIC].isEmpty()) {
        table.appendRow(0, accesses[Component.ACCESS_PUBLIC]);
    }
    if (!accesses[Component.ACCESS_PACKAGE].isEmpty()) {
        table.appendRow(0, accesses[Component.ACCESS_PACKAGE]);
    }
    if (!accesses[Component.ACCESS_PRIVATE].isEmpty()) {
        table.appendRow(0, accesses[Component.ACCESS_PRIVATE]);
    }
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData) Member(lucee.runtime.component.Member) DataMember(lucee.runtime.component.DataMember)

Example 12 with DumpTable

use of lucee.runtime.dump.DumpTable in project Lucee by lucee.

the class FileCacheItem method toDumpData.

@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
    DumpTable table = new DumpTable("#669999", "#ccffff", "#000000");
    table.setTitle("FileCacheEntry");
    table.appendRow(1, new SimpleDumpData("Path"), new SimpleDumpData(path));
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Example 13 with DumpTable

use of lucee.runtime.dump.DumpTable in project Lucee by lucee.

the class IncludeCacheItem method toDumpData.

@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
    DumpTable table = new DumpTable("#669999", "#ccffff", "#000000");
    table.setTitle("IncludeCacheEntry");
    table.appendRow(1, new SimpleDumpData("Output"), DumpUtil.toDumpData(new SimpleDumpData(output), pageContext, maxlevel, properties));
    if (path != null)
        table.appendRow(1, new SimpleDumpData("Path"), DumpUtil.toDumpData(new SimpleDumpData(path), pageContext, maxlevel, properties));
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Example 14 with DumpTable

use of lucee.runtime.dump.DumpTable in project Lucee by lucee.

the class UDFCacheItem method toDumpData.

@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
    DumpTable table = new DumpTable("#669999", "#ccffff", "#000000");
    table.setTitle("UDFCacheEntry");
    table.appendRow(1, new SimpleDumpData("Return Value"), DumpUtil.toDumpData(returnValue, pageContext, maxlevel, properties));
    table.appendRow(1, new SimpleDumpData("Output"), DumpUtil.toDumpData(new SimpleDumpData(output), pageContext, maxlevel, properties));
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Example 15 with DumpTable

use of lucee.runtime.dump.DumpTable in project Lucee by lucee.

the class WebserviceCacheItem method toDumpData.

@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
    DumpTable table = new DumpTable("#669999", "#ccffff", "#000000");
    table.setTitle("WebserviceCacheEntry");
    table.appendRow(1, new SimpleDumpData("URL"), DumpUtil.toDumpData(new SimpleDumpData(url), pageContext, maxlevel, properties));
    table.appendRow(1, new SimpleDumpData("Method Name"), DumpUtil.toDumpData(new SimpleDumpData(methodName), pageContext, maxlevel, properties));
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Aggregations

DumpTable (lucee.runtime.dump.DumpTable)48 SimpleDumpData (lucee.runtime.dump.SimpleDumpData)39 DumpData (lucee.runtime.dump.DumpData)6 PageException (lucee.runtime.exp.PageException)5 Collection (lucee.runtime.type.Collection)4 Key (lucee.runtime.type.Collection.Key)4 SQL (lucee.runtime.db.SQL)3 DumpRow (lucee.runtime.dump.DumpRow)3 PageRuntimeException (lucee.runtime.exp.PageRuntimeException)3 Struct (lucee.runtime.type.Struct)3 IOException (java.io.IOException)2 Iterator (java.util.Iterator)2 Binding (javax.wsdl.Binding)2 BindingOperation (javax.wsdl.BindingOperation)2 Operation (javax.wsdl.Operation)2 Port (javax.wsdl.Port)2 QName (javax.xml.namespace.QName)2 DumpProperties (lucee.runtime.dump.DumpProperties)2 DumpWriter (lucee.runtime.dump.DumpWriter)2 ExpressionException (lucee.runtime.exp.ExpressionException)2