|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.parcinj.MatchingResult
public final class MatchingResult
Immutable class representing the result of a Symbol.matches(Token)
invocation. If matching isn't successful a human readable failure reason is
provided.
| Field Summary | |
|---|---|
static MatchingResult |
OK
Successful matching result. |
| Method Summary | |
|---|---|
static MatchingResult |
failure(java.lang.String reason)
Creates a matching failure for the specified reason. |
java.lang.String |
getFailureReason()
Returns the reason of failure. |
boolean |
isSuccessful()
Returns true if matching was successful. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final MatchingResult OK
| Method Detail |
|---|
public static MatchingResult failure(java.lang.String reason)
unknown is used.
public final boolean isSuccessful()
true if matching was successful.
public final java.lang.String getFailureReason()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||