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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations