|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.rsyntaxtextarea.parser.DefaultParseResult
public class DefaultParseResult
A basic implementation of ParseResult.
| Constructor Summary | |
|---|---|
DefaultParseResult(Parser parser)
|
|
| Method Summary | |
|---|---|
void |
addNotice(ParserNotice notice)
Adds a parser notice. |
void |
clearNotices()
Clears any parser notices in this result. |
Exception |
getError()
|
int |
getFirstLineParsed()
Returns the first line parsed. |
int |
getLastLineParsed()
Returns the last line parsed. |
List |
getNotices()
Returns the notices for the parsed section. |
Parser |
getParser()
Returns the parser that generated these notices. |
long |
getParseTime()
|
void |
setError(Exception e)
Sets the error that occurred when last parsing the document, if any. |
void |
setParsedLines(int first,
int last)
Sets the line range parsed. |
void |
setParseTime(long time)
Sets the amount of time it took for this parser to parse the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultParseResult(Parser parser)
| Method Detail |
|---|
public void addNotice(ParserNotice notice)
notice - The new notice.clearNotices()public void clearNotices()
addNotice(ParserNotice)public Exception getError()
public int getFirstLineParsed()
getFirstLineParsed in interface ParseResultParseResult.getLastLineParsed()public int getLastLineParsed()
getLastLineParsed in interface ParseResultParseResult.getFirstLineParsed()public List getNotices()
getNotices in interface ParseResultpublic long getParseTime()
public Parser getParser()
getParser in interface ParseResultpublic void setError(Exception e)
e - The error that occurred, or null if no error
occurred.public void setParseTime(long time)
time - The amount of time, in milliseconds.getParseTime()
public void setParsedLines(int first,
int last)
first - The first line parsed, inclusive.last - The last line parsed, inclusive.getFirstLineParsed(),
getLastLineParsed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||