java.lang.Object
org.aspectj.org.eclipse.jdt.core.compiler.CategorizedProblem
org.aspectj.org.eclipse.jdt.internal.compiler.problem.DefaultProblem
Alle implementierten Schnittstellen:
IProblem
Bekannte direkte Unterklassen:
AptProblem

public class DefaultProblem extends CategorizedProblem
  • Felddetails

    • column

      public int column
    • severity

      public int severity
    • EMPTY_VALUES

      public static final Object[] EMPTY_VALUES
  • Konstruktordetails

    • DefaultProblem

      public DefaultProblem(char[] originatingFileName, String message, int id, String[] stringArguments, int severity, int startPosition, int endPosition, int line, int column)
  • Methodendetails

    • reportError

      public void reportError()
    • errorReportSource

      public String errorReportSource(char[] unitSource)
    • getArguments

      public String[] getArguments()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer back the original arguments recorded into the problem.
      Gibt zurück:
      the original arguments recorded into the problem
    • getCategoryID

      public int getCategoryID()
      Beschreibung aus Klasse kopiert: CategorizedProblem
      Returns an integer identifying the category of this problem. Categories, like problem IDs are defined in the context of some marker type. Custom implementations of CategorizedProblem may choose arbitrary values for problem/category IDs, as long as they are associated with a different marker type. Standard Java problem markers (i.e. marker type is "org.eclipse.jdt.core.problem") carry an attribute "categoryId" persisting the originating problem category ID as defined by this method).
      Angegeben von:
      getCategoryID in Klasse CategorizedProblem
      Gibt zurück:
      id - an integer identifying the category of this problem
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.compiler.CategorizedProblem#getCategoryID()
    • getID

      public int getID()
      Answer the type of problem.
      Gibt zurück:
      int
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.compiler.IProblem#getID()
    • getInternalCategoryMessage

      public String getInternalCategoryMessage()
      Answers a readable name for the category which this problem belongs to, or null if none could be found. FOR TESTING PURPOSE
      Gibt zurück:
      java.lang.String
    • getMarkerType

      public String getMarkerType()
      Returns the marker type associated to this problem.
      Angegeben von:
      getMarkerType in Klasse CategorizedProblem
      Gibt zurück:
      the type of the marker which would be associated to the problem
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.compiler.CategorizedProblem#getMarkerType()
    • getMessage

      public String getMessage()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer a localized, human-readable message string which describes the problem.
      Gibt zurück:
      a localized, human-readable message string which describes the problem
    • getOriginatingFileName

      public char[] getOriginatingFileName()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer the file name in which the problem was found.
      Gibt zurück:
      the file name in which the problem was found
    • getSourceEnd

      public int getSourceEnd()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer the end position of the problem (inclusive), or -1 if unknown.
      Gibt zurück:
      the end position of the problem (inclusive), or -1 if unknown
    • getSourceColumnNumber

      public int getSourceColumnNumber()
      Answer the line number in source where the problem begins.
      Gibt zurück:
      int
    • getSourceLineNumber

      public int getSourceLineNumber()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer the line number in source where the problem begins.
      Gibt zurück:
      the line number in source where the problem begins
    • getSourceStart

      public int getSourceStart()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Answer the start position of the problem (inclusive), or -1 if unknown.
      Gibt zurück:
      the start position of the problem (inclusive), or -1 if unknown
    • isError

      public boolean isError()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Returns whether the severity of this problem is 'Error'.
      Gibt zurück:
      true if the severity of this problem is 'Error', false otherwise
    • isWarning

      public boolean isWarning()
      Beschreibung aus Schnittstelle kopiert: IProblem
      Returns whether the severity of this problem is 'Warning'.
      Gibt zurück:
      true if the severity of this problem is 'Warning', false otherwise
    • isInfo

      public boolean isInfo()
      Beschreibung aus Klasse kopiert: CategorizedProblem
      Returns whether the severity of this problem is 'Info'.

      Note: This implementation always returns false, subclasses can override.

      Angegeben von:
      isInfo in Schnittstelle IProblem
      Setzt außer Kraft:
      isInfo in Klasse CategorizedProblem
      Gibt zurück:
      true if the severity of this problem is 'Info', false otherwise
    • setOriginatingFileName

      public void setOriginatingFileName(char[] fileName)
    • setSourceEnd

      public void setSourceEnd(int sourceEnd)
      Beschreibung aus Schnittstelle kopiert: IProblem
      Set the end position of the problem (inclusive), or -1 if unknown. Used for shifting problem positions.
      Parameter:
      sourceEnd - the given end position
    • setSourceLineNumber

      public void setSourceLineNumber(int lineNumber)
      Beschreibung aus Schnittstelle kopiert: IProblem
      Set the line number in source where the problem begins.
      Parameter:
      lineNumber - the given line number
    • setSourceStart

      public void setSourceStart(int sourceStart)
      Beschreibung aus Schnittstelle kopiert: IProblem
      Set the start position of the problem (inclusive), or -1 if unknown. Used for shifting problem positions.
      Parameter:
      sourceStart - the given start position
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • setSeeAlsoProblems

      public void setSeeAlsoProblems(IProblem[] problems)
    • seeAlso

      public IProblem[] seeAlso()
    • getSupplementaryMessageInfo

      public String getSupplementaryMessageInfo()
    • setSupplementaryMessageInfo

      public void setSupplementaryMessageInfo(String msg)