* @param event
* @return
*/
public ENewObjectEvent createNewObjectEvent(BreakpointEvent event)
{
ENewObjectEvent ret=new ENewObjectEvent();
currentEEvent = ret;
currentEvent = event;
loadEventTimeData(ret);
loadStackTraceLocation(ret, event.thread());
//actualStackFrameLocation4Thread.put(ret.getStackFrameLocation().getStackFrame().getThread().getName(), ret.getStackFrameLocation());
pushST(ret.getStackFrameLocation());
//cargar argumentos
ret.setArguments(new HashSet<EArgument>());
try {
EArgument arg = null;
for(ELocalVariable param : ret.getStackFrameLocation().getStackFrame().getMethod().getParameters())
{
arg = new EArgument();
arg.setNewObjectEvent(ret);
arg.setParameter(param);
if(event.thread().frame(0).visibleVariableByName(param.getName())==null)
System.out.println("parametro no encontrado en " + event.location().method() + ":" + param.getName());
else
arg.setValue(getValue(event.thread().frame(0).getValue(event.thread().frame(0).visibleVariableByName(param.getName()))));
ret.getArguments().add(arg);
}
}
catch(Exception e)
{
throw new RuntimeException("No se pudieron obtener los argumentos durante el evento "