java.lang.Object
ushiosan.jvm_utilities.lang.print.PrintObj

public final class PrintObj extends Object
  • Method Details

    • toString

      @NotNull public static @NotNull String toString(@Nullable @Nullable Object obj, boolean verbose)
      Object string representation
      Parameters:
      obj - object string representation
      verbose - output verbose mode
      Returns:
      object string representation
    • toInstanceString

      @NotNull public static @NotNull String toInstanceString(@NotNull @NotNull Object instance)
      Loop through the entire object and create a representation of the object in a text string. This behavior can be configured using class annotations such as PrintOpts and PrintExclude.
      Parameters:
      instance - the object to transform
      Returns:
      object string representation
    • attachExtension

      public void attachExtension(boolean verbose, @NotNull @NotNull Pair<Apply.Result<Object,String>,Class<?>[]> extension)
      Insert new printable extension to the instance
      Parameters:
      verbose - determines the level of detail in the output of the content
      extension - the extension to insert
    • attachExtension

      public void attachExtension(boolean verbose, @NotNull Apply.Result<Object,String> action, Class<?> @NotNull ... supported)
      Insert new printable extension to the instance
      Parameters:
      verbose - determines the level of detail in the output of the content
      action - the extension action
      supported - supported elements