Class DumpUtil

java.lang.Object
ortus.boxlang.runtime.util.DumpUtil

public class DumpUtil extends Object
This class is responsible for dumping objects in the BoxLang runtime into a human readable format in different formats and to different destinations.
  • 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 context
      target - The target object
      label - The label for the object
    • dumpTextToConsole

      public static void dumpTextToConsole(IBoxContext context, Object target, String label)
      Dump the object to the console.
      Parameters:
      context - The context
      target - The target object
      label - The label for the object
    • dumpTextToBuffer

      public static void dumpTextToBuffer(IBoxContext context, Object target)
      Dump the object to a buffer.
      Parameters:
      context - The context
      target - 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 context
      target - The target object
      label - The label for the object
      top - The number of levels to dump
      expand - Whether to expand the object
      abort - Whether to abort on error
      output - The output location
      format - The format for the output
      showUDFs - Whether to show UDFs