Class ParserNotice
java.lang.Object
org.fife.rsta.ac.java.rjc.notices.ParserNotice
A notice (e.g., a warning or error) from a parser.
- Version:
- 0.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParserNotice(int line, int column, int length, String message) Constructor.ParserNotice(Token t, String msg) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the character offset into the line of the parser notice, if any.intReturns the length of the code the message is concerned with.intgetLine()Returns the line number the notice is about, if any.Returns the message from the parser.toString()Returns a string representation of this parser notice.
-
Field Details
-
line
private int line -
column
private int column -
length
private int length -
message
-
-
Constructor Details
-
ParserNotice
-
ParserNotice
Constructor.- Parameters:
line- The line of the notice.column- The column of the notice.length- The length of the code the message is concerned with.message- The message.
-
-
Method Details
-
getColumn
public int getColumn()Returns the character offset into the line of the parser notice, if any.- Returns:
- The column.
-
getLength
public int getLength()Returns the length of the code the message is concerned with.- Returns:
- The length of the code the message is concerned with.
-
getLine
public int getLine()Returns the line number the notice is about, if any.- Returns:
- The line number.
-
getMessage
Returns the message from the parser.- Returns:
- The message from the parser.
-
toString
-