Package net.didion.jwnl.data.list
Class NodePrinter
- java.lang.Object
-
- net.didion.jwnl.data.list.NodePrinter
-
public abstract class NodePrinter extends java.lang.Object
A printer for displaying the contents of a node list.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NodePrinter.NodeListIteratorWrapper
Wrapper for a NodeListIterator that allows the next pointer to be moved to any index.
-
Field Summary
Fields Modifier and Type Field Description private int
_defaultIndent
private java.io.PrintStream
_defaultStream
-
Constructor Summary
Constructors Constructor Description NodePrinter()
NodePrinter(int defaultIndent)
NodePrinter(java.io.PrintStream defaultStream)
NodePrinter(java.io.PrintStream defaultStream, int defaultIndent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
print(java.io.PrintStream stream, Node node, int indent, int indentIncrement)
Print the contents of the given node, indenting it indent spaces.void
print(TypeCheckingList.TypeCheckingListIterator itr)
Print the contents of itr using the default indentvoid
print(TypeCheckingList.TypeCheckingListIterator itr, int indent)
Print the contents of itr indenting each line indent spaces.void
print(TypeCheckingList.TypeCheckingListIterator itr, int indent, int indentIncrement)
Print the contents of itr to the default stream.void
print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream)
Print the contents of itr to the given streamvoid
print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream, int indent)
Print the contents of itr to the given stream indenting each line indent spaces.void
print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream, int indent, int indentIncrement)
Print the contents of itr to the given stream.
-
-
-
Method Detail
-
print
protected abstract void print(java.io.PrintStream stream, Node node, int indent, int indentIncrement)
Print the contents of the given node, indenting it indent spaces. In each recurisive call to print, indent should be incremented by indentIncrement.
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr)
Print the contents of itr using the default indent
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream)
Print the contents of itr to the given stream
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream, int indent)
Print the contents of itr to the given stream indenting each line indent spaces.
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr, int indent)
Print the contents of itr indenting each line indent spaces.
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr, int indent, int indentIncrement)
Print the contents of itr to the default stream. Indent the first line indent spaces. Each level of nesting will be printed intented indentIncrement spaces more than the previous level of nesting.
-
print
public void print(TypeCheckingList.TypeCheckingListIterator itr, java.io.PrintStream stream, int indent, int indentIncrement)
Print the contents of itr to the given stream. Indent the first line indent spaces. Each level of nesting will be printed intented indentIncrement spaces more than the previous level of nesting.
-
-