Class AnnotationProblem

All Implemented Interfaces:
IProblem

public class AnnotationProblem extends JavaProblem
Annotation problems that may occur.
Author:
Mikael Andersson, Christopher Mindus
  • Field Details

  • Constructor Details

    • AnnotationProblem

      public AnnotationProblem(int category, int problem, String message, int start, int end, int line)
      Constructor without quick fixes.
      Parameters:
      category -
      problem -
      message -
      start -
      end -
      line -
  • Method Details

    • getMarkerType

      public String getMarkerType()
      Returns the marker type associated to this problem, if it gets persisted into a marker by the JavaBuilder Standard Java problems are associated to marker type "org.eclipse.jdt.core.problem"). Note: problem markers are expected to extend "org.eclipse.core.resources.problemmarker" marker type.
      Specified by:
      getMarkerType in class JavaProblem
      Returns:
      the type of the marker which would be associated to the problem
    • isError

      public boolean isError()
      Checks the severity to see if the Error bit is set.
      Returns:
      true if the Error bit is set for the severity, false otherwise
    • isWarning

      public boolean isWarning()
      Checks the severity to see if the Error bit is not set.
      Returns:
      true if the Error bit is not set for the severity, false otherwise