|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.jscomp.JSError
public class JSError
Compile error description
Field Summary | |
---|---|
String |
description
Description of the error |
CheckLevel |
level
Deprecated. Use #getDefaultLevel |
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. |
CheckLevel |
getDefaultLevel()
The default level, before any of the WarningsGuards are applied. |
int |
getNodeLength()
|
int |
getNodeSourceOffset()
|
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
@Deprecated public final CheckLevel level
Method Detail |
---|
public static JSError make(DiagnosticType type, String... arguments)
type
- The DiagnosticTypearguments
- Arguments to be incorporated into the messagepublic 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 messagepublic 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 messagepublic 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 messagepublic 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)
null
public String toString()
toString
in class Object
public int getCharno()
public int getNodeSourceOffset()
public int getNodeLength()
public CheckLevel getDefaultLevel()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |