Top Description Fields Constructors Methods
org.hibernate.loader.plan.build.spi

public Class TreePrinterHelper

extends Object
Class Inheritance
Imports
org.hibernate.internal.util.StringHelper

A singleton helper class for printing tree structures using indentation.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final int
INDENTATION

The number of characters to indent.

public static final TreePrinterHelper
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the String containing the specified number of indentations.
generateNodePrefix
(int
the number of indentations in the returned String.
nIndentations
)

Returns a string containing the specified number of indentations, where each indentation contains INDENTATION blank characters.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INDENTATIONback to summary
public static final int INDENTATION

The number of characters to indent.

INSTANCEback to summary
public static final TreePrinterHelper INSTANCE

Singleton access

Constructor Detail

TreePrinterHelperback to summary
private TreePrinterHelper()

Method Detail

generateNodePrefixback to summary
public String generateNodePrefix(int nIndentations)

Returns a string containing the specified number of indentations, where each indentation contains INDENTATION blank characters.

Parameters
nIndentations:int

the number of indentations in the returned String.

Returns:String

the String containing the specified number of indentations.