dcsimg

Can ANTLR-generated Java classes be made non-public so they are not visible outside the package?

Terence Parr

Currently (antlr 2.7.1) there is no way to prevent ANTLR from putting the "public" on the class def that I can remember. You could easily modify the source, of course, in JavaCodeGenerator.java.