CodeQL library for Java
codeql/java-all 0.4.4 (changelog, source)
Search

Class Diagnostic

A compiler-generated error, warning or remark.

Import path

import semmle.code.java.Diagnostics

Direct supertypes

Predicates

getCompilation

Gets the compilation that generated this diagnostic.

getFullMessage

Gets the full error message text associated with this compiler diagnostic.

getGeneratedBy

Gets the program that generated this diagnostic.

getLocation

Gets the source location corresponding to the compiler message.

getMessage

Gets the error message text associated with this compiler diagnostic.

getSeverity

Gets the severity of the message, on a range from 1 to 5: 1=remark, 2=warning, 3=discretionary error, 4=error, 5=catastrophic error.

getTag

Gets the error code for this compiler message.

hasTag

Holds if s is the error code for this compiler message.

toString

Gets a textual representation of this diagnostic.