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 5007d9180..56d6a320d 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 @@ -128,21 +128,24 @@ public class extends { public static final String[] ruleNames = { "}; separator=", ", wrap, anchor> }; - - - - @Override public String getGrammarFileName() { return ""; } @Override public String[] getTokenNames() { return tokenNames; } + @Override public String[] getRuleNames() { return ruleNames; } + @Override public ATN getATN() { return _ATN; } + + + + + public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) { switch ( ruleIndex ) {