1 19 20 package org.openide.src; 21 22 import java.io.PrintWriter ; 23 24 35 public class DefaultElementPrinter implements ElementPrinter { 36 37 private PrintWriter writer; 38 39 42 public DefaultElementPrinter(PrintWriter writer) { 43 this.writer = writer; 44 } 45 46 49 public void print(String text) { 50 writer.print(text); 51 } 52 53 56 public void println(String text) { 57 writer.println(text); 58 } 59 60 65 public void markClass(ClassElement element, int what) throws ElementPrinterInterruptException { 66 } 67 68 73 public void markInitializer(InitializerElement element, int what) throws ElementPrinterInterruptException { 74 } 75 76 81 public void markField(FieldElement element, int what) throws ElementPrinterInterruptException { 82 } 83 84 89 public void markConstructor(ConstructorElement element, int what) throws ElementPrinterInterruptException { 90 } 91 92 97 public void markMethod(MethodElement element, int what) throws ElementPrinterInterruptException { 98 } 99 } 100 | Popular Tags |