Schnittstelle IMessage

Alle bekannten Implementierungsklassen:
LintMessage, Message, WeaveMessage

public interface IMessage
Wrap message with any associated throwable or source location.
  • Felddetails

  • Methodendetails

    • getMessage

      String getMessage()
      Gibt zurück:
      non-null String with simple message
    • getKind

      IMessage.Kind getKind()
      Gibt zurück:
      the kind of this message
    • isError

      boolean isError()
      Gibt zurück:
      true if this is an error
    • isWarning

      boolean isWarning()
      Gibt zurück:
      true if this is a warning
    • isDebug

      boolean isDebug()
      Gibt zurück:
      true if this is an internal debug message
    • isUsage

      boolean isUsage()
      Gibt zurück:
      true if this is a compiler usage message
    • isInfo

      boolean isInfo()
      Gibt zurück:
      true if this is information for the user
    • isAbort

      boolean isAbort()
      Gibt zurück:
      true if the process is aborting
    • isTaskTag

      boolean isTaskTag()
      Gibt zurück:
      true if this is a task tag message
    • isFailed

      boolean isFailed()
      Gibt zurück:
      true if something failed
    • getDeclared

      boolean getDeclared()
      Caller can verify if this message came about because of a DEOW
    • getID

      int getID()
      Return the ID of the message where applicable, see IProblem for list of valid IDs
    • getSourceStart

      int getSourceStart()
      Return the start position of the problem (inclusive), or -1 if unknown.
    • getSourceEnd

      int getSourceEnd()
      Return the end position of the problem (inclusive), or -1 if unknown.
    • getThrown

      Throwable getThrown()
      Gibt zurück:
      Throwable associated with this message, or null if none
    • getSourceLocation

      ISourceLocation getSourceLocation()
      Gibt zurück:
      source location associated with this message, or null if none
    • getDetails

      String getDetails()
      Gibt zurück:
      Detailed information about the message. For example, for declare error/warning messages this returns information about the corresponding join point's static part.
    • getExtraSourceLocations

      List<ISourceLocation> getExtraSourceLocations()
      Return a List of ISourceLocation instances that indicate additional source locations relevent to this message as specified by the message creator. The list should not include the primary source location associated with the message which can be obtained from getSourceLocation().

      An example of using extra locations would be in a warning message that flags all shadow locations that will go unmatched due to a pointcut definition being based on a subtype of a defining type.

      Gibt zurück:
      a list of additional source locations
      Siehe auch: