Package io.higson.runtime.config
Class DefinitionPrinter
java.lang.Object
io.higson.runtime.config.DefinitionPrinter
- Author:
- przemek hertel
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.this constructor will be hidden for external usage. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefinitionPrinterprettyPrinter(BundleDef def) Creates pretty printer with support for better formatting.print()print(boolean pretty) Deprecated.this method will be removed in the future.static DefinitionPrinterstandardPrinter(BundleDef def) Creates standard printer without support for better formatting.
-
Constructor Details
-
DefinitionPrinter
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
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
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.this method will be removed in the future. Please useprettyPrinter(io.higson.runtime.model.def.BundleDef)and then normalprint()method.- Parameters:
pretty- indicates whether printer should print in 'pretty' way (using spaces etc)- Returns:
- string containing printed bundle def
-
print
-