Package org.antlr.v4.tool
Interface ANTLRToolListener
-
- All Known Implementing Classes:
DefaultToolListener
public interface ANTLRToolListener
Defines behavior of object able to handle error messages from ANTLR including both tool errors like "can't write file" and grammar ambiguity warnings. To avoid having to change tools that use ANTLR (like GUIs), I am wrapping error data in Message objects and passing them to the listener. In this way, users of this interface are less sensitive to changes in the info I need for error messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
error(ANTLRMessage msg)
void
info(String msg)
void
warning(ANTLRMessage msg)
-
-
-
Method Detail
-
info
void info(String msg)
-
error
void error(ANTLRMessage msg)
-
warning
void warning(ANTLRMessage msg)
-
-