diff --git a/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java b/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java index 626af2cd6e5..eabcb18c064 100644 --- a/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java +++ b/src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java @@ -1986,6 +1986,13 @@ public Map getLineNumberMapping() { return getPrinterHelper().getLineNumberMapping(); } + /** + * @return current {@link TokenWriter}, so the subclasses of {@link DefaultJavaPrettyPrinter} can print tokens too + */ + protected TokenWriter getPrinterTokenWriter() { + return printer; + } + /** * Set {@link TokenWriter}, which has to be used to print tokens */