Class TreePrinterHelper
- java.lang.Object
-
- org.hibernate.loader.plan.build.spi.TreePrinterHelper
-
public class TreePrinterHelper extends java.lang.Object
A singleton helper class for printing tree structures using indentation.
-
-
Field Summary
Fields Modifier and Type Field Description static int
INDENTATION
The number of characters to indent.static TreePrinterHelper
INSTANCE
Singleton access
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateNodePrefix(int nIndentations)
Returns a string containing the specified number of indentations, where each indentation containsINDENTATION
blank characters.
-
-
-
Field Detail
-
INDENTATION
public static final int INDENTATION
The number of characters to indent.- See Also:
- Constant Field Values
-
INSTANCE
public static final TreePrinterHelper INSTANCE
Singleton access
-
-
Method Detail
-
generateNodePrefix
public java.lang.String generateNodePrefix(int nIndentations)
Returns a string containing the specified number of indentations, where each indentation containsINDENTATION
blank characters.- Parameters:
nIndentations
- the number of indentations in the returned String.- Returns:
- the String containing the specified number of indentations.
-
-