|
Java™ Pretty Printer Library v0.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrettyPrintable
An interface for objects that can pretty print themselves.
The prettyPrint(DataLayouter)
method will be called
by DataLayouter.print(Object)
for objects that implement
this interface. According to the intended use of DataLayouter
,
the produced output should correspond to what Object.toString()
returns, except for added indentation and whitespace.
Method Summary | ||
---|---|---|
|
prettyPrint(DataLayouter<Exc> l)
Pretty prints this to the
DataLayouter l . |
Method Detail |
---|
<Exc extends java.lang.Exception> void prettyPrint(DataLayouter<Exc> l) throws Exc extends java.lang.Exception
this
to the
DataLayouter
l
. Will be called by
DataLayouter.print(Object)
for objects that implement this
interface. According to the intended use of DataLayouter
, the
produced output should correspond to what Object.toString()
returns, except for added indentation and whitespace.
The implementation must end any blocks it begins. It must not
close l
. It may pass through any exceptions of type
Exc
that are thrown by calls to methods of l
l
- the DataLayouter the object will be printed to.
Exc extends java.lang.Exception
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |