Package icyllis.arc3d.compiler
Class ErrorHandler
java.lang.Object
icyllis.arc3d.compiler.ErrorHandler
Class which is notified in the event of an error.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidReports an error.final voidReports an error.final intfinal Stringprotected abstract voidhandleError(int start, int end, String msg) Called when an error is reported.protected abstract voidhandleWarning(int start, int end, String msg) Called when a warning is reported.final voidreset()final voidfinal voidReports a warning.final voidReports a warning.final int
-
Field Details
-
mSource
-
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
Method Details
-
getSource
-
setSource
-
errorCount
public final int errorCount() -
warningCount
public final int warningCount() -
reset
public final void reset() -
error
Reports an error.- Parameters:
pos- seePositionmsg- the error message to report
-
error
Reports an error.- Parameters:
start- the start offset in the source string, or -1end- the end offset in the source string, or -1msg- the error message to report
-
warning
Reports a warning.- Parameters:
pos- seePositionmsg- the warning message to report
-
warning
Reports a warning.- Parameters:
start- the start offset in the source string, or -1end- the end offset in the source string, or -1msg- the warning message to report
-
handleError
Called when an error is reported. -
handleWarning
Called when a warning is reported.
-