|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.jscomp.DiagnosticType
public class DiagnosticType
The type of a compile or analysis error.
Field Summary | |
---|---|
CheckLevel |
defaultLevel
Default level |
MessageFormat |
format
The default way to format errors |
String |
key
The error type. |
CheckLevel |
level
Reporting level, initially the defaultLevel but may be changed. |
Method Summary | |
---|---|
int |
compareTo(DiagnosticType diagnosticType)
|
static DiagnosticType |
disabled(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.OFF |
boolean |
equals(Object type)
|
static DiagnosticType |
error(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.ERROR |
int |
hashCode()
|
static DiagnosticType |
make(String name,
CheckLevel level,
String descriptionFormat)
Create a DiagnosticType at a given CheckLevel. |
String |
toString()
|
static DiagnosticType |
warning(String name,
String descriptionFormat)
Create a DiagnosticType at level CheckLevel.WARNING |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String key
public final MessageFormat format
public final CheckLevel defaultLevel
public CheckLevel level
Method Detail |
---|
public static DiagnosticType error(String name, String descriptionFormat)
name
- An identifierdescriptionFormat
- A format string
public static DiagnosticType warning(String name, String descriptionFormat)
name
- An identifierdescriptionFormat
- A format string
public static DiagnosticType disabled(String name, String descriptionFormat)
name
- An identifierdescriptionFormat
- A format string
public static DiagnosticType make(String name, CheckLevel level, String descriptionFormat)
name
- An identifierlevel
- Either CheckLevel.ERROR or CheckLevel.WARNINGdescriptionFormat
- A format string
public boolean equals(Object type)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(DiagnosticType diagnosticType)
compareTo
in interface Comparable<DiagnosticType>
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |