|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.jscomp.JSError
public class JSError
Compile error description
| Field Summary | |
|---|---|
String |
description
Description of the error |
CheckLevel |
level
Level |
int |
lineNumber
Line number of the source |
String |
sourceName
Name of the source |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
format(CheckLevel level,
MessageFormatter formatter)
Format a message at the given level. |
int |
getCharno()
Get the character number. |
DiagnosticType |
getType()
|
int |
hashCode()
|
static JSError |
make(DiagnosticType type,
String... arguments)
Creates a JSError with no source information |
static JSError |
make(String sourceName,
int lineno,
int charno,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location |
static JSError |
make(String sourceName,
int lineno,
int charno,
DiagnosticType type,
String... arguments)
Creates a JSError at a given source location |
static JSError |
make(String sourceName,
Node n,
CheckLevel level,
DiagnosticType type,
String... arguments)
Creates a JSError from a file and Node position. |
static JSError |
make(String sourceName,
Node n,
DiagnosticType type,
String... arguments)
Creates a JSError from a file and Node position. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String description
public final String sourceName
public final int lineNumber
public final CheckLevel level
| Method Detail |
|---|
public static JSError make(DiagnosticType type,
String... arguments)
type - The DiagnosticTypearguments - Arguments to be incorporated into the message
public static JSError make(String sourceName,
int lineno,
int charno,
DiagnosticType type,
String... arguments)
sourceName - The source file namelineno - Line number with source file, or -1 if unknowncharno - Column number within line, or -1 for whole line.type - The DiagnosticTypearguments - Arguments to be incorporated into the message
public static JSError make(String sourceName,
int lineno,
int charno,
CheckLevel level,
DiagnosticType type,
String... arguments)
sourceName - The source file namelineno - Line number with source file, or -1 if unknowncharno - Column number within line, or -1 for whole line.type - The DiagnosticTypearguments - Arguments to be incorporated into the message
public static JSError make(String sourceName,
Node n,
DiagnosticType type,
String... arguments)
sourceName - The source file namen - Determines the line and char position within the source file nametype - The DiagnosticTypearguments - Arguments to be incorporated into the message
public static JSError make(String sourceName,
Node n,
CheckLevel level,
DiagnosticType type,
String... arguments)
sourceName - The source file namen - Determines the line and char position within the source file nametype - The DiagnosticTypearguments - Arguments to be incorporated into the messagepublic DiagnosticType getType()
public String format(CheckLevel level,
MessageFormatter formatter)
nullpublic String toString()
toString in class Objectpublic int getCharno()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||