|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.src.DefaultElementPrinter
A trivial implementation of ElementPrinter.
It is backed by the supplied PrintWriter,
and by default just prints the text as supplied to that print
writer.
It does nothing for any of the mark methods, and never
throws ElementPrinterInterruptException.
Subclasses may use this as an adapter for ElementPrinter,
typically providing a nontrivial body for one of the mark methods.
| Field Summary |
| Fields inherited from interface org.openide.src.ElementPrinter |
BODY_BEGIN, BODY_END, ELEMENT_BEGIN, ELEMENT_END, HEADER_BEGIN, HEADER_END, JAVADOC_BEGIN, JAVADOC_END |
| Constructor Summary | |
DefaultElementPrinter(PrintWriter writer)
Create a printer. |
|
| Method Summary | |
void |
markClass(ClassElement element,
int what)
Mark a notable point in a class element. |
void |
markConstructor(ConstructorElement element,
int what)
Mark a notable point in a constructor element. |
void |
markField(FieldElement element,
int what)
Mark a notable point in a field element. |
void |
markInitializer(InitializerElement element,
int what)
Mark a notable point in a initializer element. |
void |
markMethod(MethodElement element,
int what)
Mark a notable point in a method element. |
void |
print(String text)
Print some text. |
void |
println(String text)
Print a line of text with a newline. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultElementPrinter(PrintWriter writer)
writer - the writer to send printed text to| Method Detail |
public void print(String text)
ElementPrinter
print in interface ElementPrintertext - the textpublic void println(String text)
ElementPrinter
println in interface ElementPrintertext - the textpublic void markClass(ClassElement element, int what) throws ElementPrinterInterruptException
ElementPrinter
markClass in interface ElementPrinterelement - the elementwhat - which point
ElementPrinterInterruptException - - see class descriptionpublic void markInitializer(InitializerElement element, int what) throws ElementPrinterInterruptException
ElementPrinter
markInitializer in interface ElementPrinterelement - the elementwhat - which point
ElementPrinterInterruptException - - see class descriptionpublic void markField(FieldElement element, int what) throws ElementPrinterInterruptException
ElementPrinter
markField in interface ElementPrinterelement - the elementwhat - which point
ElementPrinterInterruptException - - see class descriptionpublic void markConstructor(ConstructorElement element, int what) throws ElementPrinterInterruptException
ElementPrinter
markConstructor in interface ElementPrinterelement - the elementwhat - which point
ElementPrinterInterruptException - - see class descriptionpublic void markMethod(MethodElement element, int what) throws ElementPrinterInterruptException
ElementPrinter
markMethod in interface ElementPrinterelement - the elementwhat - which point
ElementPrinterInterruptException - - see class description
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||