pub fn verify_method<C: VerificationContext>(
class_file: &ClassFile<'_>,
method: &Method,
context: &C,
config: &VerifierConfig,
) -> Result<VerificationResult>Expand description
Verifies a method’s bytecode.
This is the main entry point for bytecode verification. It automatically selects the appropriate verification strategy based on class file version and configuration.
§Arguments
class_file- The class file containing the methodmethod- The method to verifycontext- The verification context for type hierarchy checksconfig- Verifier configuration
§Returns
A VerificationResult with details about the verification.
§Errors
Returns an error if verification fails and fallback is not possible.