protected EvaluationContextImpl createEvaluationContext(final SuspendContextImpl suspendContext) {
   try {
     StackFrameProxyImpl proxy = suspendContext.getFrameProxy();
     assertNotNull(proxy);
     return new EvaluationContextImpl(suspendContext, proxy, proxy.thisObject());
   } catch (EvaluateException e) {
     error(e);
     return null;
   }
 }
예제 #2
0
 protected ObjectReference getThisObject(SuspendContextImpl context, LocatableEvent event)
     throws EvaluateException {
   ThreadReferenceProxyImpl thread = context.getThread();
   if (thread != null) {
     StackFrameProxyImpl stackFrameProxy = thread.frame(0);
     if (stackFrameProxy != null) {
       return stackFrameProxy.thisObject();
     }
   }
   return null;
 }