public final class StackVer extends Object
To see the diffs, you will need a git clone of git@github.com:apache/commons-bcel.git. The
particular version StackVer is based on can be retrieved with
git show e6dcacb9ca1d:src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java
then run google-java-format on the downloaded file.
The original documentation follows.
This PassVerifier verifies a method of class file according to pass 3, so-called structural verification as described in The Java Virtual Machine Specification, 2nd edition. More detailed information is to be found at the do_verify() method's documentation.
| Constructor and Description |
|---|
StackVer()
This class should only be instantiated by a Verifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message)
This method adds a (warning) message to the message pool of this PassVerifier.
|
org.apache.bcel.verifier.VerificationResult |
do_stack_ver(org.apache.bcel.generic.MethodGen mg)
Pass 3b implements the data flow analysis as described in the Java Virtual Machine
Specification, Second Edition.
|
StackTypes |
get_stack_types()
Return the types on the stack at each byte code offset.
|
void |
invalidReturnTypeError(org.apache.bcel.generic.Type returnedType,
org.apache.bcel.generic.MethodGen m)
Throws an exception indicating the returned type is not compatible with the return type of the
given method.
|
public StackVer()
Verifierpublic StackTypes get_stack_types()
public void invalidReturnTypeError(org.apache.bcel.generic.Type returnedType,
org.apache.bcel.generic.MethodGen m)
returnedType - the type of the returned expressionm - the method we are processingorg.apache.bcel.verifier.exc.StructuralCodeConstraintException - alwayspublic org.apache.bcel.verifier.VerificationResult do_stack_ver(org.apache.bcel.generic.MethodGen mg)
mg - MethodGen for the method to be verifiedLocalVariablesInfo,
Pass2Verifier.getLocalVariablesInfo(int)public void addMessage(String message)
message - the String containing the warning message