• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ModificationWatchpointRequest类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.jdi.request.ModificationWatchpointRequest的典型用法代码示例。如果您正苦于以下问题:Java ModificationWatchpointRequest类的具体用法?Java ModificationWatchpointRequest怎么用?Java ModificationWatchpointRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ModificationWatchpointRequest类属于com.sun.jdi.request包,在下文中一共展示了ModificationWatchpointRequest类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: addFieldWatch

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
private static void addFieldWatch(VirtualMachine vm,
    ReferenceType refType) {
  EventRequestManager erm = vm.eventRequestManager();
  Field field = refType.fieldByName(FIELD_NAME);
  ModificationWatchpointRequest modificationWatchpointRequest = erm
      .createModificationWatchpointRequest(field);
  modificationWatchpointRequest.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
  modificationWatchpointRequest.setEnabled(true);
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:10,代码来源:FieldMonitor.java


示例2: createModificationWatchpointRequest

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public ModificationWatchpointRequest
                    createModificationWatchpointRequest(Field field) {
    validateMirror(field);
    if (!vm.canWatchFieldModification()) {
        throw new UnsupportedOperationException(
      "target VM does not support modification watchpoints");
    }
    return new ModificationWatchpointRequestImpl(field);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:EventRequestManagerImpl.java


示例3: wrapModificationWatchpointRequests

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public static List<ModificationWatchpointRequest> wrapModificationWatchpointRequests(
        F3VirtualMachine f3vm, List<ModificationWatchpointRequest> reqs) {
    if (reqs == null) {
        return null;
    }
    List<ModificationWatchpointRequest> result = new ArrayList<ModificationWatchpointRequest>();
    for (ModificationWatchpointRequest req : reqs) {
        result.add(wrap(f3vm, req));
    }
    return result;
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:12,代码来源:F3EventRequest.java


示例4: createFieldRequests

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
protected void createFieldRequests(final JDIDebugTarget target, final ReferenceType refType)
{
  final EventRequestManager manager = target.getEventRequestManager();
  if (manager != null)
  {
    try
    {
      // monitor all non-synthetic fields of the prepared classes for reads/writes
      for (final Object o : refType.fields())
      {
        final Field f = (Field) o;
        // Ignore compiler generated fields
        if (!f.isSynthetic() && f.name().indexOf("$") == -1)
        {
          // monitor field reads
          final AccessWatchpointRequest readRequest = manager.createAccessWatchpointRequest(f);
          readRequest.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
          readRequest.enable();
          fieldRequests.add(readRequest);
          target.addJDIEventListener(fieldReadHandler, readRequest);
          // monitor field writes
          final ModificationWatchpointRequest writeRequest = manager
              .createModificationWatchpointRequest(f);
          writeRequest.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
          writeRequest.enable();
          fieldRequests.add(writeRequest);
          target.addJDIEventListener(fieldWriteHandler, writeRequest);
        }
      }
    }
    catch (final RuntimeException e)
    {
      JiveDebugPlugin.log(e);
    }
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:37,代码来源:EventHandlerFactory.java


示例5: modificationWatchpointRequests

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public List<ModificationWatchpointRequest> modificationWatchpointRequests() {
    return (List<ModificationWatchpointRequest>)unmodifiableRequestList(JDWP.EventKind.FIELD_MODIFICATION);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:4,代码来源:EventRequestManagerImpl.java


示例6: F3ModificationWatchpointRequest

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public F3ModificationWatchpointRequest(F3VirtualMachine f3vm, ModificationWatchpointRequest underlying) {
    super(f3vm, underlying);
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3ModificationWatchpointRequest.java


示例7: underlying

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
@Override
protected ModificationWatchpointRequest underlying() {
    return (ModificationWatchpointRequest) super.underlying();
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:5,代码来源:F3ModificationWatchpointRequest.java


示例8: modificationWatchpointRequests

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public List<ModificationWatchpointRequest> modificationWatchpointRequests() {
    return F3EventRequest.wrapModificationWatchpointRequests(virtualMachine(),
            underlying().modificationWatchpointRequests());
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:5,代码来源:F3EventRequestManager.java


示例9: wrap

import com.sun.jdi.request.ModificationWatchpointRequest; //导入依赖的package包/类
public static F3EventRequest wrap(F3VirtualMachine f3vm, EventRequest req) {
    if (req == null) {
        return null;
    }

    if (req instanceof AccessWatchpointRequest) {
        return new F3AccessWatchpointRequest(f3vm, (AccessWatchpointRequest)req);
    } else if (req instanceof BreakpointRequest) {
        return new F3BreakpointRequest(f3vm, (BreakpointRequest)req);
    } else if (req instanceof ClassPrepareRequest) {
        return new F3ClassPrepareRequest(f3vm, (ClassPrepareRequest)req);
    } else if (req instanceof ClassUnloadRequest) {
        return new F3ClassUnloadRequest(f3vm, (ClassUnloadRequest)req);
    } else if (req instanceof ExceptionRequest) {
        return new F3ExceptionRequest(f3vm, (ExceptionRequest)req);
    } else if (req instanceof MethodEntryRequest) {
        return new F3MethodEntryRequest(f3vm, (MethodEntryRequest)req);
    } else if (req instanceof MethodExitRequest) {
        return new F3MethodExitRequest(f3vm, (MethodExitRequest)req);
    } else if (req instanceof ModificationWatchpointRequest) {
        return new F3ModificationWatchpointRequest(f3vm, (ModificationWatchpointRequest)req);
    } else if (req instanceof MonitorContendedEnterRequest) {
        return new F3MonitorContendedEnterRequest(f3vm, (MonitorContendedEnterRequest)req);
    } else if (req instanceof MonitorContendedEnteredRequest) {
        return new F3MonitorContendedEnteredRequest(f3vm, (MonitorContendedEnteredRequest)req);
    } else if (req instanceof MonitorWaitRequest) {
        return new F3MonitorWaitRequest(f3vm, (MonitorWaitRequest)req);
    } else if (req instanceof MonitorWaitedRequest) {
        return new F3MonitorWaitedRequest(f3vm, (MonitorWaitedRequest)req);
    } else if (req instanceof StepRequest) {
        return new F3StepRequest(f3vm, (StepRequest)req);
    } else if (req instanceof ThreadDeathRequest) {
        return new F3ThreadDeathRequest(f3vm, (ThreadDeathRequest)req);
    } else if (req instanceof ThreadStartRequest) {
        return new F3ThreadStartRequest(f3vm, (ThreadStartRequest)req);
    } else if (req instanceof VMDeathRequest) {
        return new F3VMDeathRequest(f3vm, (VMDeathRequest)req);
    } else if (req instanceof WatchpointRequest) {
        return new F3WatchpointRequest(f3vm, (WatchpointRequest)req);
    } else {
        return new F3EventRequest(f3vm, req);
    }
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:44,代码来源:F3EventRequest.java



注:本文中的com.sun.jdi.request.ModificationWatchpointRequest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AndroidMediaPlayer类代码示例发布时间:2022-05-21
下一篇:
Java ContainerReport类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap