Class LogEntry


  • public final class LogEntry
    extends java.lang.Object
    The LogEntry class stores information about a translation issue registered in the log.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class 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 Summary

      Constructors 
      Constructor Description
      LogEntry​(LogEntry.Kind kind, SenderKind sender, java.lang.String source, int line, int position, java.lang.String message)
      Creates a LogEntry object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LogEntry

        public LogEntry​(LogEntry.Kind kind,
                        SenderKind sender,
                        java.lang.String source,
                        int line,
                        int position,
                        java.lang.String message)
        Creates a LogEntry object.
        Parameters:
        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.
    • Method Detail

      • toString

        public java.lang.String toString()
        Return the textual representation of the entry.
        Overrides:
        toString in class java.lang.Object
      • getKind

        public LogEntry.Kind getKind()
        Returns an identifier that signifies the severity level of the issue.
        Returns:
        The severity level of the issue.
      • getSender

        public SenderKind getSender()
        Returns an identifier of the subsystem that detected an issue.
        Returns:
        Identifier of the subsystem that detected an issue.
      • getSource

        public java.lang.String getSource()
        Returns the name of the source file that caused a translation issue.
        Returns:
        Source file name.
      • getLine

        public int getLine()
        Returns the number of the problematic line in the source file.
        Returns:
        The line number.
      • getPosition

        public int getPosition()
        Returns the position in the problematic line at which the issue was detected.
        Returns:
        The position of the text in the problematic line that caused the issue.
      • getMessage

        public java.lang.String getMessage()
        Returns the issue description.
        Returns:
        The issue description.