use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class ArrayImpl method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
DumpTable table = new DumpTable("array", "#99cc33", "#ccff33", "#000000");
table.setTitle("Array");
int top = dp.getMaxlevel();
if (size() > top)
table.setComment("Rows: " + size() + " (showing top " + top + ")");
else if (size() > 10 && dp.getMetainfo())
table.setComment("Rows: " + size());
int length = size();
for (int i = 1; i <= length; i++) {
Object o = null;
try {
o = getE(i);
} catch (Exception e) {
}
table.appendRow(1, new SimpleDumpData(i), DumpUtil.toDumpData(o, pageContext, maxlevel, dp));
if (i == top)
break;
}
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class ArrayImplNS method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
DumpTable table = new DumpTable("array", "#ff9900", "#ffcc00", "#000000");
table.setTitle("Array");
int length = size();
maxlevel--;
for (int i = 1; i <= length; i++) {
Object o = null;
try {
o = getE(i);
} catch (Exception e) {
}
table.appendRow(1, new SimpleDumpData(i), DumpUtil.toDumpData(o, pageContext, maxlevel, dp));
}
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class CastableStruct method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
if (value == null)
return super.toDumpData(pageContext, maxlevel, dp);
DumpTable table = new DumpTable("struct", "#9999ff", "#ccccff", "#000000");
table.setTitle("Value Struct");
maxlevel--;
table.appendRow(1, new SimpleDumpData("value"), DumpUtil.toDumpData(value, pageContext, maxlevel, dp));
table.appendRow(1, new SimpleDumpData("struct"), super.toDumpData(pageContext, maxlevel, dp));
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class DateTimeImpl method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
String str = castToString(pageContext.getTimeZone());
DumpTable table = new DumpTable("date", "#ff6600", "#ffcc99", "#000000");
if (dp.getMetainfo())
table.appendRow(1, new SimpleDumpData("Date Time (" + pageContext.getTimeZone().getID() + ")"));
else
table.appendRow(1, new SimpleDumpData("Date Time"));
table.appendRow(0, new SimpleDumpData(str));
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class TimeImpl method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
String str = castToString("");
DumpTable table = new DumpTable("date", "#ff9900", "#ffcc00", "#000000");
table.appendRow(1, new SimpleDumpData("Time"), new SimpleDumpData(str));
return table;
}
Aggregations