Class Problem


  • public class Problem
    extends Object
    A representation of a syntax error or warning.
    • Constructor Detail

      • Problem

        public Problem​(String type,
                       String path,
                       int fline,
                       int fcolumn,
                       int lline,
                       int lcolumn,
                       String msg,
                       String context)
        Constructor: Creates a new problem object
        Parameters:
        type - - The type of the problem ("warning" or "error")
        path - - The path string
        fline - - The number of the first line
        fcolumn - - The number of the first column
        lline - - The number of the last line
        lcolumn - - The number of the last column
        msg - - The message text
        context - - The surrounding text
      • Problem

        public Problem​(String type,
                       String path,
                       int fline,
                       int fcolumn,
                       int lline,
                       int lcolumn,
                       String msg)
    • Method Detail

      • getType

        public String getType()
        Get the problem type
        Returns:
        type - The type string
      • getMessage

        public String getMessage()
        Get the message of the problem
        Returns:
        msg - The message string
      • getXPath

        public String getXPath()
        Get the path where the problem come from
        Returns:
        path - The path string
      • getFirstLine

        public int getFirstLine()
        Get the first line of the problem
        Returns:
        fline - The number of the first line
      • getFirstColumn

        public int getFirstColumn()
        Get the number of the first column
        Returns:
        fcolum - The number of the first column
      • getLastLine

        public int getLastLine()
        Get the number of the last line
        Returns:
        lline - The last line
      • getLastColumn

        public int getLastColumn()
        Get the number of the last column
        Returns:
        - The number of the last column
      • getContext

        public String getContext()
        Get the error location
        Returns:
        - The location string