Search in sources :

Example 26 with SimpleDumpData

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;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData) PageException(lucee.runtime.exp.PageException)

Example 27 with SimpleDumpData

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;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData) ExpressionException(lucee.runtime.exp.ExpressionException) PageRuntimeException(lucee.runtime.exp.PageRuntimeException) PageException(lucee.runtime.exp.PageException)

Example 28 with SimpleDumpData

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;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Example 29 with SimpleDumpData

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;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Example 30 with SimpleDumpData

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;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable) SimpleDumpData(lucee.runtime.dump.SimpleDumpData)

Aggregations

DumpTable (lucee.runtime.dump.DumpTable)39 SimpleDumpData (lucee.runtime.dump.SimpleDumpData)39 DumpData (lucee.runtime.dump.DumpData)5 PageException (lucee.runtime.exp.PageException)4 Collection (lucee.runtime.type.Collection)4 Key (lucee.runtime.type.Collection.Key)4 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 Array (lucee.runtime.type.Array)2