Package ortus.boxlang.runtime.util
Class DumpUtil
java.lang.Object
ortus.boxlang.runtime.util.DumpUtil
This class is responsible for dumping objects in the BoxLang runtime
into a human readable format in different formats and to different
destinations.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddump(IBoxContext context, Object target, String label, Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) static voiddumpHTMLToBuffer(IBoxContext context, Object target, String label, Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) Dump the object to an HTML buffer.static voiddumpHTMLToConsole(IBoxContext context, Object target, String label, Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) Dump the object to the console.static voiddumpTextToBuffer(IBoxContext context, Object target) Dump the object to a buffer.static voiddumpTextToConsole(IBoxContext context, Object target, String label) Dump the object to the console.
-
Constructor Details
-
DumpUtil
public DumpUtil()
-
-
Method Details
-
dump
public static void dump(IBoxContext context, Object target, String label, @Nullable Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) - Parameters:
target-label-top-expand-abort-output-format-showUDFs-
-
dumpHTMLToConsole
public static void dumpHTMLToConsole(IBoxContext context, Object target, String label, @Nullable Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) Dump the object to the console.- Parameters:
context- The contexttarget- The target objectlabel- The label for the object
-
dumpTextToConsole
Dump the object to the console.- Parameters:
context- The contexttarget- The target objectlabel- The label for the object
-
dumpTextToBuffer
Dump the object to a buffer.- Parameters:
context- The contexttarget- The target object
-
dumpHTMLToBuffer
public static void dumpHTMLToBuffer(IBoxContext context, Object target, String label, @Nullable Integer top, Boolean expand, Boolean abort, String output, String format, Boolean showUDFs) Dump the object to an HTML buffer.- Parameters:
context- The contexttarget- The target objectlabel- The label for the objecttop- The number of levels to dumpexpand- Whether to expand the objectabort- Whether to abort on erroroutput- The output locationformat- The format for the outputshowUDFs- Whether to show UDFs
-