|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
lp.wrap.LparseMessage
public class LparseMessage
This class represents a warning or error message from lparse.
LparseWrapper,
Serialized Form| Field Summary | |
|---|---|
private int |
lineNumber
Contains the number of line in the lparse's input to which this message is related. |
private boolean |
warning
Is true if this is a warning message and false if it is
an error message. |
| Constructor Summary | |
|---|---|
LparseMessage()
Creates a new lparse error that has no a detail message. |
|
LparseMessage(String message,
int lineNumber)
Creates a new lparse error with the specified detail message and line number. |
|
LparseMessage(String message,
int lineNumber,
boolean isWarning)
Creates a new lparse message with the specified detail message and line number. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true iff obj is an instance of
LparseMessage, is of the same type (as specified by
isWarning()) and contains the same message for the same
line number. |
int |
getLineNumber()
Returns the number of line in the lparse's input to which this message is related. |
int |
hashCode()
Overriden in order to maintain the general contract of Object.hashCode(). |
boolean |
isWarning()
Returns true if this is a warning message and false if it
is an error message. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final boolean warning
true if this is a warning message and false if it is
an error message.
private final int lineNumber
| Constructor Detail |
|---|
public LparseMessage()
new LparseMessage(null, -1, false).
public LparseMessage(String message,
int lineNumber)
new LparseMessage(message, lineNumber, false).
message - the detail messagelineNumber - the number of line in the lparse's input on which this
error was found
public LparseMessage(String message,
int lineNumber,
boolean isWarning)
warning is true, then the message is just a
warning. Otherwise it is an lparse error.
message - the detail messagelineNumber - the number of line in the lparse's input to which this
message is relatedisWarning - determines if this is a warning or error message| Method Detail |
|---|
public boolean isWarning()
true if this is a warning message and false if it
is an error message.
public int getLineNumber()
public boolean equals(Object obj)
true iff obj is an instance of
LparseMessage, is of the same type (as specified by
isWarning()) and contains the same message for the same
line number.
equals in class Objectpublic int hashCode()
Object.hashCode().
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||