本文整理汇总了Java中com.sun.jdi.request.EventRequestManager.createClassPrepareRequest方法的典型用法代码示例。如果您正苦于以下问题:Java EventRequestManager.createClassPrepareRequest方法的具体用法?Java EventRequestManager.createClassPrepareRequest怎么用?Java EventRequestManager.createClassPrepareRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.jdi.request.EventRequestManager
的用法示例。
在下文中一共展示了EventRequestManager.createClassPrepareRequest方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRequest
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
protected void createRequest()
{
final EventRequestManager manager = owner.getEventRequestManager();
if (manager != null)
{
try
{
final ClassPrepareRequest request = manager.createClassPrepareRequest();
owner.jdiManager().modelFilter().filter(request);
request.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
request.enable();
owner.addJDIEventListener(this, request);
}
catch (final RuntimeException e)
{
JiveDebugPlugin.log(e);
}
}
}
示例2: addClassWatch
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
private static void addClassWatch(VirtualMachine vm) {
EventRequestManager erm = vm.eventRequestManager();
ClassPrepareRequest classPrepareRequest = erm
.createClassPrepareRequest();
classPrepareRequest.addClassFilter(CLASS_NAME);
classPrepareRequest.setEnabled(true);
}
示例3: addClassWatch
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
private static void addClassWatch(VirtualMachine vm) {
EventRequestManager erm = vm.eventRequestManager();
ClassPrepareRequest classPrepareRequest = erm
.createClassPrepareRequest();
classPrepareRequest.addClassFilter(CLASS_NAME);
classPrepareRequest.setEnabled(true);
}
示例4: watchBuggyClass
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
private void watchBuggyClass() {
EventRequestManager erm = vm.eventRequestManager();
ClassPrepareRequest classPrepareRequest = erm.createClassPrepareRequest();
classPrepareRequest.addClassFilter(location.getContainingClassName());
classPrepareRequest.setEnabled(true);
}