Class PrintStreamDiagnosticListener
- java.lang.Object
-
- net.automatalib.serialization.taf.parser.PrintStreamDiagnosticListener
-
- All Implemented Interfaces:
TAFParseDiagnosticListener
public class PrintStreamDiagnosticListener extends Object implements TAFParseDiagnosticListener
-
-
Constructor Summary
Constructors Constructor Description PrintStreamDiagnosticListener(PrintStream ps)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(int line, int col, String msgFmt, Object... args)Called when a non-fatal error is encountered during parsing.static TAFParseDiagnosticListenergetStderrDiagnosticListener()voidwarning(int line, int col, String msgFmt, Object... args)Called when a warning is raised during parsing.
-
-
-
Constructor Detail
-
PrintStreamDiagnosticListener
public PrintStreamDiagnosticListener(PrintStream ps)
-
-
Method Detail
-
getStderrDiagnosticListener
public static TAFParseDiagnosticListener getStderrDiagnosticListener()
-
error
public void error(int line, int col, String msgFmt, Object... args)Description copied from interface:TAFParseDiagnosticListenerCalled when a non-fatal error is encountered during parsing.A non-fatal error could be, for example, the usage of an input symbol that was not declared in the alphabet. In this case, the respective transition is simply ignored.
- Specified by:
errorin interfaceTAFParseDiagnosticListener- Parameters:
line- the line where the error occurredcol- the column where the error occurredmsgFmt- a format string of the message (seeMessageFormat)args- the arguments of the message
-
warning
public void warning(int line, int col, String msgFmt, Object... args)Description copied from interface:TAFParseDiagnosticListenerCalled when a warning is raised during parsing.A warning could be raised when, for example, an unrecognized option is used for a state.
- Specified by:
warningin interfaceTAFParseDiagnosticListener- Parameters:
line- the line where the warning was raisedcol- the column where the warning was raisedmsgFmt- a format string of the message (seeMessageFormat)args- the arguments of the message
-
-