|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.text.SourceError
public class SourceError
Represents an error message from processing a "source" file.
Field Summary | |
---|---|
int |
column
The column number of the error, with 1 being the left-most column. |
java.lang.String |
filename
|
int |
line
The (1-origin) location of the error. |
java.lang.String |
message
The actual error message. |
SourceError |
next
Used to chain to the "next" message. |
char |
severity
The seriousness of the error - one of 'w' (for warning), 'e' (for error), or 'f' (for fatal error). |
Constructor Summary | |
---|---|
SourceError(char severity,
java.lang.String filename,
int line,
int column,
java.lang.String message)
|
|
SourceError(LineBufferedReader port,
char severity,
java.lang.String message)
Create a new SourceError using the current line/column from a LineBufferedReader . |
Method Summary | |
---|---|
void |
print(java.io.PrintWriter out)
|
void |
println(java.io.PrintStream out)
|
void |
println(java.io.PrintWriter out)
|
java.lang.String |
toString()
Convert the error to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public SourceError next
public char severity
public java.lang.String filename
public int line
public int column
public java.lang.String message
Constructor Detail |
---|
public SourceError(char severity, java.lang.String filename, int line, int column, java.lang.String message)
public SourceError(LineBufferedReader port, char severity, java.lang.String message)
LineBufferedReader
.
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void print(java.io.PrintWriter out)
public void println(java.io.PrintWriter out)
public void println(java.io.PrintStream out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |