Java 类com.sun.jdi.event.ThreadStartEvent 实例源码

项目:form-follows-function    文件:F3Event.java   
public static F3Event wrap(F3VirtualMachine f3vm, Event evt) {
    if (evt == null) {
        return null;
    }
    if (evt instanceof AccessWatchpointEvent) {
        return new F3AccessWatchpointEvent(f3vm, (AccessWatchpointEvent)evt);
    } else if (evt instanceof BreakpointEvent) {
        return new F3BreakpointEvent(f3vm, (BreakpointEvent)evt);
    } else if (evt instanceof ClassPrepareEvent) {
        return new F3ClassPrepareEvent(f3vm, (ClassPrepareEvent)evt);
    } else if (evt instanceof ClassUnloadEvent) {
        return new F3ClassUnloadEvent(f3vm, (ClassUnloadEvent)evt);
    } else if (evt instanceof ExceptionEvent) {
        return new F3ExceptionEvent(f3vm, (ExceptionEvent)evt);
    } else if (evt instanceof MethodEntryEvent) {
        return new F3MethodEntryEvent(f3vm, (MethodEntryEvent)evt);
    } else if (evt instanceof MethodExitEvent) {
        return new F3MethodExitEvent(f3vm, (MethodExitEvent)evt);
    } else if (evt instanceof ModificationWatchpointEvent) {
        return new F3ModificationWatchpointEvent(f3vm, (ModificationWatchpointEvent)evt);
    } else if (evt instanceof MonitorContendedEnterEvent) {
        return new F3MonitorContendedEnterEvent(f3vm, (MonitorContendedEnterEvent)evt);
    } else if (evt instanceof MonitorContendedEnteredEvent) {
        return new F3MonitorContendedEnteredEvent(f3vm, (MonitorContendedEnteredEvent)evt);
    } else if (evt instanceof MonitorWaitEvent) {
        return new F3MonitorWaitEvent(f3vm, (MonitorWaitEvent)evt);
    } else if (evt instanceof MonitorWaitedEvent) {
        return new F3MonitorWaitedEvent(f3vm, (MonitorWaitedEvent)evt);
    } else if (evt instanceof StepEvent) {
        return new F3StepEvent(f3vm, (StepEvent)evt);
    } else if (evt instanceof ThreadDeathEvent) {
        return new F3ThreadDeathEvent(f3vm, (ThreadDeathEvent)evt);
    } else if (evt instanceof ThreadStartEvent) {
        return new F3ThreadStartEvent(f3vm, (ThreadStartEvent)evt);
    } else if (evt instanceof VMDeathEvent) {
        return new F3VMDeathEvent(f3vm, (VMDeathEvent)evt);
    } else if (evt instanceof VMDisconnectEvent) {
        return new F3VMDisconnectEvent(f3vm, (VMDisconnectEvent)evt);
    } else if (evt instanceof VMStartEvent) {
        return new F3VMStartEvent(f3vm, (VMStartEvent)evt);
    } else if (evt instanceof WatchpointEvent) {
        return new F3WatchpointEvent(f3vm, (WatchpointEvent)evt);
    } else if (evt instanceof LocatableEvent) {
        return new F3LocatableEvent(f3vm, (LocatableEvent)evt);
    } else {
        return new F3Event(f3vm, evt);
    }
}
项目:form-follows-function    文件:Debugger.java   
public void threadStartEvent(ThreadStartEvent evt) {
    synchronized (listeners) {
        for (EventNotifier en : listeners) {
            en.threadStartEvent(evt);
        }
    }
}
项目:form-follows-function    文件:ExceptionCatchTest.java   
/**
* We call this method just before throwing an Exception and make sure it ExceptionEvent.
*/
   private void checkExceptionEvent() {
       Event event = resumeToAnyEvent();
       System.out.println("Exception request is " + event);
       Assert.assertTrue(event instanceof ExceptionEvent || event instanceof ThreadStartEvent);
       list();
   }
项目:jive    文件:EventHandlerLite.java   
@Override
public void jdiThreadStart(final ThreadStartEvent event)
{
  //
  this.currentEvent = null;
  this.currentThread = event.thread();
  //
  this.currentEvent = null;
  this.currentThread = null;
}
项目:jive    文件:JiveDebugTarget.java   
@Override
public boolean handleEvent(final Event event, final JDIDebugTarget target,
    final boolean suspendVote, final EventSet eventSet)
{
  if (isActive()
      && jdiManager().modelFilter().acceptsThread(((ThreadStartEvent) event).thread()))
  {
    jdiHandler().jdiThreadStart((ThreadStartEvent) event);
  }
  return super.handleEvent(event, target, suspendVote, eventSet);
}
项目:java-debug    文件:EventHub.java   
/**
 * Gets the observable object for thread events.
 * @return      the observable object for thread events
 */
@Override
public Observable<DebugEvent> threadEvents() {
    return this.events().filter(debugEvent -> debugEvent.event instanceof ThreadStartEvent
            || debugEvent.event instanceof ThreadDeathEvent);
}
项目:form-follows-function    文件:F3ThreadStartEvent.java   
public F3ThreadStartEvent(F3VirtualMachine f3vm, ThreadStartEvent underlying) {
    super(f3vm, underlying);
}
项目:form-follows-function    文件:F3ThreadStartEvent.java   
@Override
protected ThreadStartEvent underlying() {
    return (ThreadStartEvent) super.underlying();
}
项目:form-follows-function    文件:EventNotifierAdapter.java   
public void threadStartEvent(ThreadStartEvent e) {
}
项目:jdivisitor    文件:EmptyEventVisitor.java   
@Override
public void visit(ThreadStartEvent event) {
}
项目:jdivisitor    文件:VisitableThreadStartEvent.java   
public VisitableThreadStartEvent(ThreadStartEvent event) {
    this.event = event;
}
项目:jdivisitor    文件:EventVisitor.java   
/**
 * Visit a {@code ThreadStartEvent}.
 *
 * @param event Event to visit
 */
void visit(ThreadStartEvent event);
项目:jive    文件:IJDIEventHandler.java   
/**
 * Notification of a new running thread in the target VM.
 */
void jdiThreadStart(ThreadStartEvent event);