Class ErrorPattern


  • public class ErrorPattern
    extends Object
    Error Pattern - used by Error Parser to convert build output to problem markers
    Since:
    5.1 Clients may extend this class.
    • Method Detail

      • getMatcher

        public Matcher getMatcher​(CharSequence input)
        Parameters:
        input - - input line.
        Returns:
        matcher to interpret the input line.
      • getFileName

        public String getFileName​(Matcher matcher)
        Parameters:
        matcher - - matcher to parse the input line.
        Returns:
        parsed file name or null.
      • getLineNum

        public int getLineNum​(Matcher matcher)
        Parameters:
        matcher - - matcher to parse the input line.
        Returns:
        parsed line number or 0.
      • getDesc

        public String getDesc​(Matcher matcher)
        Parameters:
        matcher - - matcher to parse the input line.
        Returns:
        parsed description or null.
      • getVarName

        public String getVarName​(Matcher matcher)
        Parameters:
        matcher - - matcher to parse the input line.
        Returns:
        parsed variable name or null.
      • getSeverity

        public int getSeverity​(Matcher matcher)
        Parameters:
        matcher - - matcher to parse the input line.
        Returns:
        severity of the problem.
      • processLine

        public boolean processLine​(String line,
                                   ErrorParserManager eoParser)
        Parse a line of build output and register error/warning for Problems view.
        Parameters:
        line - - one line of output.
        eoParser - - ErrorParserManager.
        Returns:
        true if error/warning/info problem was found.
      • getLocation

        protected org.eclipse.core.runtime.IPath getLocation​(String filename)
        If the file designated by filename exists, return the IPath representation of the filename If it does not exist, try cygpath translation
        Parameters:
        filename - - file name
        Returns:
        location (outside of the workspace).