public final class LogEntry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LogEntry.Kind
The enumeration describes categories of events or exceptions (usually a record is added
to the log due to a runtime exception) that can occur during translation.
|
Constructor and Description |
---|
LogEntry(LogEntry.Kind kind,
SenderKind sender,
java.lang.String source,
int line,
int position,
java.lang.String message)
Creates a LogEntry object.
|
Modifier and Type | Method and Description |
---|---|
LogEntry.Kind |
getKind()
Returns an identifier that signifies the severity level of the issue.
|
int |
getLine()
Returns the number of the problematic line in the source file.
|
java.lang.String |
getMessage()
Returns the issue description.
|
int |
getPosition()
Returns the position in the problematic line at which the issue was detected.
|
SenderKind |
getSender()
Returns an identifier of the subsystem that detected an issue.
|
java.lang.String |
getSource()
Returns the name of the source file that caused a translation issue.
|
java.lang.String |
toString()
Return the textual representation of the entry.
|
public LogEntry(LogEntry.Kind kind, SenderKind sender, java.lang.String source, int line, int position, java.lang.String message)
kind
- The severity level of the issue.sender
- The subsystem that detected the issue.source
- A source file that caused translation issues.line
- The number of the problematic line in the source file.position
- The position in the problematic line in the source file.message
- The text message containing a description of the issue.public java.lang.String toString()
toString
in class java.lang.Object
public LogEntry.Kind getKind()
public SenderKind getSender()
public java.lang.String getSource()
public int getLine()
public int getPosition()
public java.lang.String getMessage()