public class ParserNotice extends Object
| Constructor and Description |
|---|
ParserNotice(String message,
int offset,
int length)
Constructor.
|
ParserNotice(String message,
int offset,
int length,
int line,
int column)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPosition(int pos)
Returns whether this parser notice contains the specified location
in the document.
|
int |
getColumn()
Returns the character offset into the line of the parser notice,
if any.
|
int |
getLength()
Returns the length of the code the message is concerned with.
|
int |
getLine()
Returns the line number the notice is about, if any.
|
String |
getMessage()
Returns the message from the parser.
|
int |
getOffset()
Returns the offset of the code the message is concerned with.
|
String |
toString()
Returns a string representation of this parser notice.
|
public ParserNotice(String message, int offset, int length)
message - The message.offset - The offset in the input stream of the code the
message is concerned with.length - The length of the code the message is concerned with.public ParserNotice(String message, int offset, int length, int line, int column)
message - The message.offset - The offset in the input stream of the code the
message is concerned with.length - The length of the code the message is concerned with.line - The line number of the notice, -1 if none.column - The character-offset into the line of the notice,
-1 if none.public boolean containsPosition(int pos)
pos - The position in the document.public int getColumn()
public int getLength()
public int getLine()
public String getMessage()
public int getOffset()
Copyright © 2009-2013 jtstand.com. All Rights Reserved.