|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.StdErrCompileMsgRecorder
public class StdErrCompileMsgRecorder
A CompileMessageRecorder that writes messages to the stderr stream, as given in an Orc Config instance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface orc.error.compiletime.CompileMessageRecorder |
---|
CompileMessageRecorder.Severity |
Constructor Summary | |
---|---|
StdErrCompileMsgRecorder(Config config)
Constructs an object of class StdErrCompileMsgRecorder. |
Method Summary | |
---|---|
void |
beginProcessing(java.io.File file)
Record that compile processing has begun for the given file. |
void |
endProcessing(java.io.File file)
Record that compile processing is complete for the given file. |
CompileMessageRecorder.Severity |
getMaxSeverity()
|
void |
recordMessage(CompileMessageRecorder.Severity severity,
int code,
java.lang.String message)
Convenience method, equivalent to recordMessage(severity, code, message, null, null, null) |
void |
recordMessage(CompileMessageRecorder.Severity severity,
int code,
java.lang.String message,
SourceLocation location,
java.lang.Object astNode)
Convenience method, equivalent to recordMessage(severity, code, message, location, astNode, null) |
void |
recordMessage(CompileMessageRecorder.Severity severity,
int code,
java.lang.String message,
SourceLocation location,
java.lang.Object astNode,
java.lang.Throwable exception)
Record a compile problem message. |
void |
recordMessage(CompileMessageRecorder.Severity severity,
int code,
java.lang.String message,
SourceLocation location,
java.lang.Throwable exception)
Convenience method, equivalent to recordMessage(severity, code, message, location, null, exception) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StdErrCompileMsgRecorder(Config config)
config
- the Orc configuration in use.Method Detail |
---|
public void beginProcessing(java.io.File file)
CompileMessageRecorder
beginProcessing
in interface CompileMessageRecorder
file
- File for which compiler processing is beginningpublic void endProcessing(java.io.File file)
CompileMessageRecorder
endProcessing
in interface CompileMessageRecorder
file
- File for which compiler processing is completepublic void recordMessage(CompileMessageRecorder.Severity severity, int code, java.lang.String message, SourceLocation location, java.lang.Object astNode, java.lang.Throwable exception)
CompileMessageRecorder
recordMessage
in interface CompileMessageRecorder
severity
- CompileMessageRecorder.Severity
of this messagecode
- integer code of this message (potentially used for filtering, is supported by the environment}message
- String localized message specifically describing problem for the complier userlocation
- SourceLocation
where problem occurred. Indicate unknown location with a partially filled SourceLocation.astNode
- ASTNode
subtree containing problem, or null if not applicable or not available.exception
- Throwable
indicating problem, or null if not applicable or not available.public void recordMessage(CompileMessageRecorder.Severity severity, int code, java.lang.String message, SourceLocation location, java.lang.Throwable exception)
CompileMessageRecorder
recordMessage(severity, code, message, location, null, exception)
recordMessage
in interface CompileMessageRecorder
severity
- CompileMessageRecorder.Severity
of this messagecode
- integer code of this message (potentially used for filtering, is supported by the environment}message
- String localized message specifically describing problem for the complier userlocation
- SourceLocation
where problem occurred. Indicate unknown location with a partially filled SourceLocation.exception
- Throwable
indicating problem, or null if not applicable or not available.public void recordMessage(CompileMessageRecorder.Severity severity, int code, java.lang.String message, SourceLocation location, java.lang.Object astNode)
CompileMessageRecorder
recordMessage(severity, code, message, location, astNode, null)
recordMessage
in interface CompileMessageRecorder
severity
- CompileMessageRecorder.Severity
of this messagecode
- integer code of this message (potentially used for filtering, is supported by the environment}message
- String localized message specifically describing problem for the complier userlocation
- SourceLocation
where problem occurred. Indicate unknown location with a partially filled SourceLocation.astNode
- ASTNode
subtree containing problem, or null if not applicable or not available.public void recordMessage(CompileMessageRecorder.Severity severity, int code, java.lang.String message)
CompileMessageRecorder
recordMessage(severity, code, message, null, null, null)
recordMessage
in interface CompileMessageRecorder
severity
- CompileMessageRecorder.Severity
of this messagecode
- integer code of this message (potentially used for filtering, is supported by the environment}message
- String localized message specifically describing problem for the complier userpublic CompileMessageRecorder.Severity getMaxSeverity()
getMaxSeverity
in interface CompileMessageRecorder
CompileMessageRecorder.beginProcessing(File)
was invoked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |