Interface IProblemLocation

All Superinterfaces:
org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore

public interface IProblemLocation extends org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
Problem information for quick fix and quick assist processors.

Note: this interface is not intended to be implemented.

Since:
3.0
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • getOffset

      int getOffset()
      Returns the start offset of the problem.
      Specified by:
      getOffset in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      the start offset of the problem
    • getLength

      int getLength()
      Returns the length of the problem.
      Specified by:
      getLength in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      the length of the problem
    • getMarkerType

      String getMarkerType()
      Returns the marker type of this problem.
      Specified by:
      getMarkerType in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      The marker type of the problem.
      Since:
      3.2
    • getProblemId

      int getProblemId()
      Returns the id of problem. Note that problem ids are defined per problem marker type. See IProblem for id definitions for problems of type org.eclipse.jdt.core.problem and org.eclipse.jdt.core.task.
      Specified by:
      getProblemId in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      The id of the problem.
    • getProblemArguments

      String[] getProblemArguments()
      Returns the original arguments recorded into the problem.
      Specified by:
      getProblemArguments in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      String[] Returns the problem arguments.
    • isError

      boolean isError()
      Returns if the problem has error severity.
      Specified by:
      isError in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Returns:
      true if the problem has error severity
    • getCoveringNode

      ASTNode getCoveringNode(CompilationUnit astRoot)
      Convenience method to evaluate the AST node covering this problem.
      Specified by:
      getCoveringNode in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Parameters:
      astRoot - The root node of the current AST
      Returns:
      Returns the node that covers the location of the problem
    • getCoveredNode

      ASTNode getCoveredNode(CompilationUnit astRoot)
      Convenience method to evaluate the AST node covered by this problem.
      Specified by:
      getCoveredNode in interface org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore
      Parameters:
      astRoot - The root node of the current AST
      Returns:
      Returns the node that is covered by the location of the problem