Class ParserNotice


  • public class ParserNotice
    extends java.lang.Object
    A notice (e.g., a warning or error) from a parser.
    Version:
    0.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int column  
      private int length  
      private int line  
      private java.lang.String message  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserNotice​(int line, int column, int length, java.lang.String message)
      Constructor.
      ParserNotice​(Token t, java.lang.String msg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()
      Returns the character offset into the line of the parser notice, if any.
      int getLength()
      Returns the length of the code the message is concerned with.
      int getLine()
      Returns the line number the notice is about, if any.
      java.lang.String getMessage()
      Returns the message from the parser.
      java.lang.String toString()
      Returns a string representation of this parser notice.
      • Methods inherited from class java.lang.Object

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

      • line

        private int line
      • column

        private int column
      • length

        private int length
      • message

        private java.lang.String message
    • Constructor Detail

      • ParserNotice

        public ParserNotice​(Token t,
                            java.lang.String msg)
      • ParserNotice

        public ParserNotice​(int line,
                            int column,
                            int length,
                            java.lang.String message)
        Constructor.
        Parameters:
        line - The line of the notice.
        column - The column of the notice.
        length - The length of the code the message is concerned with.
        message - The message.
    • Method Detail

      • getColumn

        public int getColumn()
        Returns the character offset into the line of the parser notice, if any.
        Returns:
        The column.
      • getLength

        public int getLength()
        Returns the length of the code the message is concerned with.
        Returns:
        The length of the code the message is concerned with.
      • getLine

        public int getLine()
        Returns the line number the notice is about, if any.
        Returns:
        The line number.
      • getMessage

        public java.lang.String getMessage()
        Returns the message from the parser.
        Returns:
        The message from the parser.
      • toString

        public java.lang.String toString()
        Returns a string representation of this parser notice.
        Overrides:
        toString in class java.lang.Object
        Returns:
        This parser notice as a string.