Package com.tonic.analysis.frame
Class TypeInference
- java.lang.Object
-
- com.tonic.analysis.frame.TypeInference
-
public class TypeInference extends Object
Type inference engine for bytecode analysis.
-
-
Constructor Summary
Constructors Constructor Description TypeInference(ConstPool constPool)Constructs a TypeInference engine for the given constant pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeStateapply(TypeState state, Instruction instr)Applies the type transformation of an instruction to the given state.
-
-
-
Constructor Detail
-
TypeInference
public TypeInference(ConstPool constPool)
Constructs a TypeInference engine for the given constant pool.- Parameters:
constPool- the constant pool
-
-
Method Detail
-
apply
public TypeState apply(TypeState state, Instruction instr)
Applies the type transformation of an instruction to the given state.- Parameters:
state- The current type stateinstr- The instruction to apply- Returns:
- The new type state after the instruction
-
-