/**
* Constructs an analyzer for the given behavior.
* @param behavior
*/
public StackAnalyzer(CtBehavior behavior) {
this.context = new Context(behavior);
this.stack = new Stack();
this.frames = new Frame[context.behavior.getMethodInfo().getCodeAttribute().getCodeLength()];
}