return s;
}
private static ProgramStep assignmentFromTOD(TODSession session, ICallerSideEvent event, boolean forward, boolean live) {
AssignmentStep s = new AssignmentStep();
IBehaviorInfo behavior = event.getOperationBehavior();
s.setType(StepType.ASSIGNMENT);
s.setLive(live);
s.setMethodInfo(session.getClassInformationProvider().getMethodInfo(behavior));
int line = TypeUtils.calculateLineNumber(event.getOperationBehavior(), event.getOperationBytecodeIndex());
s.setLineNumber(line); // TODO
s.setForward(forward);
Variable variableFromTOD = MirrorFactory.variableFromTOD(session, event);
if (!session.getFilter().acceptVariableName(variableFromTOD.getName())) {
return null;
}
s.setVariable(variableFromTOD);
return s;
}