|
|||||||||
| Home >> All >> org >> apache >> bcel >> [ verifier overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.bcel.verifier
Class VerificationResult

java.lang.Objectorg.apache.bcel.verifier.VerificationResult
- public class VerificationResult
- extends java.lang.Object
A VerificationResult is what a PassVerifier returns after verifying.
- Version:
- $Id: VerificationResult.java 386056 2006-03-15 11:31:56Z tcurdt $
| Field Summary | |
private java.lang.String |
detailMessage
The detailed message. |
private int |
numeric
The numeric status. |
static int |
VERIFIED_NOTYET
Constant to indicate verification has not been tried yet. |
private static java.lang.String |
VERIFIED_NOTYET_MSG
This string is the canonical message for verifications that have not been tried yet. |
static int |
VERIFIED_OK
Constant to indicate verification was passed. |
private static java.lang.String |
VERIFIED_OK_MSG
This string is the canonical message for passed verification passes. |
static int |
VERIFIED_REJECTED
Constant to indicate verfication failed. |
static VerificationResult |
VR_NOTYET
Canonical VerificationResult for not-yet-tried verifications. |
static VerificationResult |
VR_OK
Canonical VerificationResult for passed verifications. |
| Constructor Summary | |
VerificationResult(int status,
java.lang.String message)
The usual constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Returns if two VerificationResult instances are equal. |
java.lang.String |
getMessage()
Returns a detailed message. |
int |
getStatus()
Returns one one the VERIFIED_OK, VERIFIED_NOTYET, VERIFIED_REJECTED constants. |
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
java.lang.String |
toString()
Returns a String representation of the VerificationResult. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
VERIFIED_NOTYET
public static final int VERIFIED_NOTYET
- Constant to indicate verification has not been tried yet.
This happens if some earlier verification pass did not return VERIFIED_OK.
- See Also:
- Constant Field Values
VERIFIED_OK
public static final int VERIFIED_OK
- Constant to indicate verification was passed.
- See Also:
- Constant Field Values
VERIFIED_REJECTED
public static final int VERIFIED_REJECTED
- Constant to indicate verfication failed.
- See Also:
- Constant Field Values
VERIFIED_NOTYET_MSG
private static final java.lang.String VERIFIED_NOTYET_MSG
- This string is the canonical message for verifications that have not been tried yet.
This happens if some earlier verification pass did not return VERIFIED_OK.
- See Also:
- Constant Field Values
VERIFIED_OK_MSG
private static final java.lang.String VERIFIED_OK_MSG
- This string is the canonical message for passed verification passes.
- See Also:
- Constant Field Values
VR_NOTYET
public static final VerificationResult VR_NOTYET
- Canonical VerificationResult for not-yet-tried verifications.
This happens if some earlier verification pass did not return VERIFIED_OK.
VR_OK
public static final VerificationResult VR_OK
- Canonical VerificationResult for passed verifications.
numeric
private int numeric
- The numeric status.
detailMessage
private java.lang.String detailMessage
- The detailed message.
| Constructor Detail |
VerificationResult
public VerificationResult(int status,
java.lang.String message)
- The usual constructor.
| Method Detail |
getStatus
public int getStatus()
- Returns one one the VERIFIED_OK, VERIFIED_NOTYET, VERIFIED_REJECTED constants.
getMessage
public java.lang.String getMessage()
- Returns a detailed message.
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
equals
public boolean equals(java.lang.Object o)
- Returns if two VerificationResult instances are equal.
toString
public java.lang.String toString()
- Returns a String representation of the VerificationResult.
|
|||||||||
| Home >> All >> org >> apache >> bcel >> [ verifier overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.bcel.verifier.VerificationResult