|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bcel.verifier.Verifier
public class Verifier
A Verifier instance is there to verify a class file according to The Java Virtual Machine Specification, 2nd Edition. Pass-3b-verification includes pass-3a-verification; pass-3a-verification includes pass-2-verification; pass-2-verification includes pass-1-verification. A Verifier creates PassVerifier instances to perform the actual verification. Verifier instances are usually generated by the VerifierFactory.
VerifierFactory,
PassVerifier| Field Summary | |
|---|---|
private String |
classname
The name of the class this verifier operates on. |
private Pass1Verifier |
p1v
A Pass1Verifier for this Verifier instance. |
private Pass2Verifier |
p2v
A Pass2Verifier for this Verifier instance. |
private Map |
p3avs
The Pass3aVerifiers for this Verifier instance. |
private Map |
p3bvs
The Pass3bVerifiers for this Verifier instance. |
| Constructor Summary | |
|---|---|
Verifier(String fully_qualified_classname)
Instantiation is done by the VerifierFactory. |
|
| Method Summary | |
|---|---|
VerificationResult |
doPass1()
Returns the VerificationResult for the given pass. |
VerificationResult |
doPass2()
Returns the VerificationResult for the given pass. |
VerificationResult |
doPass3a(int method_no)
Returns the VerificationResult for the given pass. |
VerificationResult |
doPass3b(int method_no)
Returns the VerificationResult for the given pass. |
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. |
String |
getClassName()
Returns the name of the class this verifier operates on. |
String[] |
getMessages()
This returns all the (warning) messages collected during verification. |
static void |
main(String[] args)
Verifies class files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final String classname
private Pass1Verifier p1v
private Pass2Verifier p2v
private Map p3avs
private Map p3bvs
| Constructor Detail |
|---|
Verifier(String fully_qualified_classname)
VerifierFactory| Method Detail |
|---|
public VerificationResult doPass1()
public VerificationResult doPass2()
public VerificationResult doPass3a(int method_no)
public VerificationResult doPass3b(int method_no)
public final String getClassName()
VerifierFactorypublic void flush()
public String[] getMessages()
throws ClassNotFoundException
ClassNotFoundExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||