Package com.tonic.analysis.verifier.type
Class TypeVerifier
- java.lang.Object
-
- com.tonic.analysis.verifier.type.TypeVerifier
-
public class TypeVerifier extends Object
Abstract-interpretation type checker for a method body, walking the bytecode to a fixpoint and reporting stack, local and return type errors to a collector.
-
-
Constructor Summary
Constructors Constructor Description TypeVerifier(ClassFile classFile, ClassPool classPool)Creates a verifier for one class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidverify(MethodEntry method, ErrorCollector collector)Type checks a method body, doing nothing if it has no code, no constant pool or no bytecode, or if the code cannot be decoded.
-
-
-
Method Detail
-
verify
public void verify(MethodEntry method, ErrorCollector collector)
Type checks a method body, doing nothing if it has no code, no constant pool or no bytecode, or if the code cannot be decoded.- Parameters:
method- the method to checkcollector- receives the errors and warnings found, and can stop the walk early
-
-