Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

0
Posted

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

0

Location: http://www.jguru.com/faq/view.jsp?EID=226843 Created: Oct 11, 2000 Modified: 2000-10-11 15:11:49.889 Author: Terence Parr (http://www.jguru.com/guru/viewbio.jsp?EID=1) Question originally posed by Tim Kientzle (http://www.jguru.com/guru/viewbio.jsp?EID=225219 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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123