| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.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.
| 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)
ElementPrinterprint in interface ElementPrinterorg.openide.src.ElementPrintertext - the textElementPrinterInterruptException - - see class descriptionpublic void println(String text)
ElementPrinterprintln in interface ElementPrinterorg.openide.src.ElementPrintertext - the textElementPrinterInterruptException - - see class description
public void markClass(ClassElement element,
                      int what)
               throws ElementPrinterInterruptException
ElementPrintermarkClass in interface ElementPrinterorg.openide.src.ElementPrinterelement - the elementwhat - which pointElementPrinterInterruptException - - see class description
public void markInitializer(InitializerElement element,
                            int what)
                     throws ElementPrinterInterruptException
ElementPrintermarkInitializer in interface ElementPrinterorg.openide.src.ElementPrinterelement - the elementwhat - which pointElementPrinterInterruptException - - see class description
public void markField(FieldElement element,
                      int what)
               throws ElementPrinterInterruptException
ElementPrintermarkField in interface ElementPrinterorg.openide.src.ElementPrinterelement - the elementwhat - which pointElementPrinterInterruptException - - see class description
public void markConstructor(ConstructorElement element,
                            int what)
                     throws ElementPrinterInterruptException
ElementPrintermarkConstructor in interface ElementPrinterorg.openide.src.ElementPrinterelement - the elementwhat - which pointElementPrinterInterruptException - - see class description
public void markMethod(MethodElement element,
                       int what)
                throws ElementPrinterInterruptException
ElementPrintermarkMethod in interface ElementPrinterorg.openide.src.ElementPrinterelement - the elementwhat - which pointElementPrinterInterruptException - - see class description
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||