Search in sources :

Example 31 with DumpTable

use of lucee.runtime.dump.DumpTable 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 32 with DumpTable

use of lucee.runtime.dump.DumpTable 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 33 with DumpTable

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

the class SVArray method toDumpData.

@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table = (DumpTable) super.toDumpData(pageContext, maxlevel, dp);
    table.setTitle("SV Array");
    return table;
}
Also used : DumpTable(lucee.runtime.dump.DumpTable)

Example 34 with DumpTable

use of lucee.runtime.dump.DumpTable 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 35 with DumpTable

use of lucee.runtime.dump.DumpTable 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)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