Class DefinitionPrinter

java.lang.Object
io.higson.runtime.config.DefinitionPrinter

public class DefinitionPrinter extends Object
Author:
przemek hertel
  • Constructor Details

    • DefinitionPrinter

      @Deprecated public DefinitionPrinter(BundleDef def)
      Deprecated.
      this constructor will be hidden for external usage. Please use preferred static fabric methods.
      Parameters:
      def - bundle def that is used to create definition printer
  • Method Details

    • standardPrinter

      public static DefinitionPrinter standardPrinter(BundleDef def)
      Creates standard printer without support for better formatting.
      Parameters:
      def - bundle def that is used to create definition printer
      Returns:
      instance of definition printer
    • prettyPrinter

      public static DefinitionPrinter prettyPrinter(BundleDef def)
      Creates pretty printer with support for better formatting.
      Parameters:
      def - bundle def that is used to create definition printer
      Returns:
      instance of definition printer
    • print

      @Deprecated public String print(boolean pretty)
      Deprecated.
      this method will be removed in the future. Please use prettyPrinter(io.higson.runtime.model.def.BundleDef) and then normal print() method.
      Parameters:
      pretty - indicates whether printer should print in 'pretty' way (using spaces etc)
      Returns:
      string containing printed bundle def
    • print

      public String print()