public abstract class ErrorManager
extends java.lang.Object
DefaultErrorManager| Constructor and Description |
|---|
ErrorManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
countDeprecated()
Increments the number of deprecation warning.
|
void |
countError()
Increments the number of errors.
|
void |
countWarning()
Increments the number of warnings.
|
int |
deprecatedCount()
Returns the current count of deprecation warnings.
|
int |
errorCount()
Returns the current count of (syntax???) errors.
|
java.io.PrintStream |
errorStream()
Returns this error manager's error reporting stream.
|
boolean |
hasDeprecateds()
Returns true iff this error manager has deprecated warnings.
|
boolean |
hasErrors()
Returns true iff this error manager has errors.
|
boolean |
hasWarnings()
Returns true iff this error manager has errors.
|
boolean |
isRecoveringErrors()
Returns true iff this error manager is currently set to
recover from errors.
|
boolean |
isReportingErrors()
Returns true iff this error manager is currently set to report
errors.
|
void |
recoverFromErrors(boolean flag)
Enables (resp., disables) error recovery for this error manager iff
the specified flag is true (resp., false).
|
abstract void |
reportDeprecated(Error error)
Reports the specified error as a deprecation warning.
|
abstract void |
reportError(Error error)
Reports the specified error as an error.
|
void |
reportErrors(boolean flag)
Enables (resp., disables) error reporting for this error manager iff
the specified flag is true (resp., false).
|
abstract void |
reportWarning(Error error)
Reports the specified error as a warning.
|
void |
reset()
Resets the error manager to a fresh state.
|
void |
setErrorStream(java.io.PrintStream stream)
Sets the print stream for error reporting to the specified one.
|
abstract void |
tallyDeprecateds()
Reports a recapitulation of all deprecation warnings.
|
abstract void |
tallyErrors()
Reports a recapitulation of all errors.
|
abstract void |
tallyWarnings()
Reports a recapitulation of all warnings.
|
int |
warningCount()
Returns the current count of warnings.
|
public abstract void reportError(Error error)
public abstract void reportWarning(Error error)
public abstract void reportDeprecated(Error error)
public abstract void tallyErrors()
public abstract void tallyWarnings()
public abstract void tallyDeprecateds()
public final void setErrorStream(java.io.PrintStream stream)
public final java.io.PrintStream errorStream()
public final void reportErrors(boolean flag)
public final boolean isReportingErrors()
public final void recoverFromErrors(boolean flag)
public final boolean isRecoveringErrors()
public final boolean hasErrors()
public final boolean hasWarnings()
public final boolean hasDeprecateds()
public final void reset()
public final int errorCount()
public final void countError()
public final int warningCount()
public final void countWarning()
public final int deprecatedCount()
public final void countDeprecated()