diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index a8e4f9421..f51a0b99b 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -31,27 +31,27 @@ TreeParserFile(file, parser, namedActions) ::= << >> -ListenerFile(listener, header) ::= << +ListenerFile(file, header) ::= <<
import org.antlr.v4.runtime.tree.ParseTreeListener; -public interface Listener extends ParseTreeListener { - .Context ctx); -void exitRule(.Context ctx);}; separator="\n"> +public interface Listener extends ParseTreeListener { + .Context ctx); +void exitRule(.Context ctx);}; separator="\n"> } >> -BlankListenerFile(listener, header) ::= << +BlankListenerFile(file, header) ::= <<
import org.antlr.v4.runtime.ParserRuleContext; import org.antlr.v4.runtime.Token; -public class BlankListener implements Listener { - .Context ctx) { \} -@Override public void exitRule(.Context ctx) { \}}; separator="\n"> +public class BlankListener implements Listener { + .Context ctx) { \} +@Override public void exitRule(.Context ctx) { \}}; separator="\n"> @Override public void enterEveryRule(ParserRuleContext\< > ctx) { } @Override public void exitEveryRule(ParserRuleContext\< > ctx) { }