本文整理汇总了Java中com.sun.jdi.event.ThreadStartEvent类的典型用法代码示例。如果您正苦于以下问题:Java ThreadStartEvent类的具体用法?Java ThreadStartEvent怎么用?Java ThreadStartEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ThreadStartEvent类属于com.sun.jdi.event包,在下文中一共展示了ThreadStartEvent类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: wrap
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
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);
}
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:49,代码来源:F3Event.java
示例2: threadStartEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
public void threadStartEvent(ThreadStartEvent evt) {
synchronized (listeners) {
for (EventNotifier en : listeners) {
en.threadStartEvent(evt);
}
}
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:8,代码来源:Debugger.java
示例3: checkExceptionEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
/**
* 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();
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:10,代码来源:ExceptionCatchTest.java
示例4: jdiThreadStart
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
@Override
public void jdiThreadStart(final ThreadStartEvent event)
{
//
this.currentEvent = null;
this.currentThread = event.thread();
//
this.currentEvent = null;
this.currentThread = null;
}
开发者ID:UBPL,项目名称:jive,代码行数:11,代码来源:EventHandlerLite.java
示例5: handleEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
@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);
}
开发者ID:UBPL,项目名称:jive,代码行数:12,代码来源:JiveDebugTarget.java
示例6: threadEvents
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
/**
* 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);
}
开发者ID:Microsoft,项目名称:java-debug,代码行数:10,代码来源:EventHub.java
示例7: F3ThreadStartEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
public F3ThreadStartEvent(F3VirtualMachine f3vm, ThreadStartEvent underlying) {
super(f3vm, underlying);
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3ThreadStartEvent.java
示例8: underlying
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
@Override
protected ThreadStartEvent underlying() {
return (ThreadStartEvent) super.underlying();
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:5,代码来源:F3ThreadStartEvent.java
示例9: threadStartEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
public void threadStartEvent(ThreadStartEvent e) {
}
开发者ID:unktomi,项目名称:form-follows-function,代码行数:3,代码来源:EventNotifierAdapter.java
示例10: visit
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
@Override
public void visit(ThreadStartEvent event) {
}
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:4,代码来源:EmptyEventVisitor.java
示例11: VisitableThreadStartEvent
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
public VisitableThreadStartEvent(ThreadStartEvent event) {
this.event = event;
}
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:4,代码来源:VisitableThreadStartEvent.java
示例12: visit
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
/**
* Visit a {@code ThreadStartEvent}.
*
* @param event Event to visit
*/
void visit(ThreadStartEvent event);
开发者ID:adrianherrera,项目名称:jdivisitor,代码行数:7,代码来源:EventVisitor.java
示例13: jdiThreadStart
import com.sun.jdi.event.ThreadStartEvent; //导入依赖的package包/类
/**
* Notification of a new running thread in the target VM.
*/
void jdiThreadStart(ThreadStartEvent event);
开发者ID:UBPL,项目名称:jive,代码行数:5,代码来源:IJDIEventHandler.java
注:本文中的com.sun.jdi.event.ThreadStartEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论