VerifierFactory, PassVerifier
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| private final String | className
The name of the class this verifier operates on. |
| pack-priv static final Verifier[] | |
| pack-priv static final String | |
| private Pass1Verifier | p1v
A Pass1Verifier for this Verifier instance. |
| private Pass2Verifier | p2v
A Pass2Verifier for this Verifier instance. |
| private final Map | p3avs
The Pass3aVerifiers for this Verifier instance. |
| private final Map | p3bvs
The Pass3bVerifiers for this Verifier instance. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public VerificationResult | |
| public VerificationResult | |
| public VerificationResult | Returns: the VerificationResultThe method to verify methodNo)Returns the VerificationResult for the given pass. |
| public VerificationResult | Returns: the VerificationResultThe method to verify methodNo)Returns the VerificationResult for the given pass. |
| public void | flush()
Forget everything known about the class file; that means, really start a new verification of a possibly different class file from BCEL's repository. |
| public final String | |
| public String[] | |
| public static void | |
| pack-priv static void |
| BANNER | back to summary |
|---|---|
| pack-priv static final String BANNER | |
| className | back to summary |
|---|---|
| private final String className The name of the class this verifier operates on. | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final Verifier[] EMPTY_ARRAY | |
| NAME | back to summary |
|---|---|
| pack-priv static final String NAME | |
| p1v | back to summary |
|---|---|
| private Pass1Verifier p1v A Pass1Verifier for this Verifier instance. | |
| p2v | back to summary |
|---|---|
| private Pass2Verifier p2v
Deprecated as a consequence of A Pass2Verifier for this Verifier instance. | |
| p3avs | back to summary |
|---|---|
| private final Map<String, Pass3aVerifier> p3avs The Pass3aVerifiers for this Verifier instance. Key: Interned string specifying the method number. | |
| p3bvs | back to summary |
|---|---|
| private final Map<String, Pass3bVerifier> p3bvs The Pass3bVerifiers for this Verifier instance. Key: Interned string specifying the method number. | |
| Verifier | back to summary |
|---|---|
| pack-priv Verifier(final String fullyQualifiedClassName) Instantiation is done by the VerifierFactory.
| |
| doPass1 | back to summary |
|---|---|
| public VerificationResult doPass1() Returns the VerificationResult for the given pass. | |
| doPass2 | back to summary |
|---|---|
| public VerificationResult doPass2() Returns the VerificationResult for the given pass. | |
| doPass3a | back to summary |
|---|---|
| public VerificationResult doPass3a(final int methodNo) Returns the VerificationResult for the given pass.
| |
| doPass3b | back to summary |
|---|---|
| public VerificationResult doPass3b(final int methodNo) Returns the VerificationResult for the given pass.
| |
| flush | back to summary |
|---|---|
| public void flush() Forget everything known about the class file; that means, really start a new verification of a possibly different class file from BCEL's repository. | |
| getClassName | back to summary |
|---|---|
| public final String getClassName() Returns the name of the class this verifier operates on. This is particularly interesting when this verifier was created recursively by another Verifier and you got a reference to this Verifier by the getVerifiers() method of the VerifierFactory.
| |
| getMessages | back to summary |
|---|---|
| public String[] getMessages() throws ClassNotFoundException This returns all the (warning) messages collected during verification. A prefix shows from which verifying pass a message originates.
| |
| main | back to summary |
|---|---|
| public static void main(final String[] args) Verifies class files. This is a simple demonstration of how the API of BCEL's class file verifier "JustIce" may be used. You should supply command-line arguments which are fully qualified namea of the classes to verify. These class files must be somewhere in your CLASSPATH (refer to Sun's documentation for questions about this) or you must have put the classes into the BCEL Repository yourself (via 'addClass(JavaClass)'). | |
| verifyType | back to summary |
|---|---|
| pack-priv static void verifyType(final String fullyQualifiedClassName) throws ClassNotFoundException | |