Package org.apache.harmony.jpda.tests.framework.jdwp

Examples of org.apache.harmony.jpda.tests.framework.jdwp.EventMod


    public ReplyPacket setBreakpoint(Location location, byte suspendPolicy) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.BREAKPOINT;

        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };

        mods[0].loc = location;
        mods[0].modKind = EventMod.ModKind.LocationOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here


        // Get Method reference ID
        long methodID = getMethodID(typeID, breakpoint.methodName);

        byte eventKind = JDWPConstants.EventKind.BREAKPOINT;

        EventMod mod1 = new EventMod();
        mod1.modKind = EventMod.ModKind.LocationOnly;
        mod1.loc = new Location(typeTag, typeID, methodID, breakpoint.index);

        EventMod mod2 = new EventMod();
        mod2.modKind = EventMod.ModKind.Count;
        mod2.count = count;

        EventMod[] mods = new EventMod[] { mod1, mod2 };
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

    public ReplyPacket setClassPrepared(String classRegexp) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.CLASS_PREPARE;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].classPattern = classRegexp;
        mods[0].modKind = EventMod.ModKind.ClassMatch;
        Event event = new Event(eventKind, suspendPolicy, mods);

        // Set event
View Full Code Here

    public ReplyPacket setClassPrepared(long referenceTypeID) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.CLASS_PREPARE;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].clazz = referenceTypeID;
        mods[0].modKind = EventMod.ModKind.ClassOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);

        // Set event
View Full Code Here

    public ReplyPacket setClassUnload(String classRegexp) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.CLASS_UNLOAD;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].classPattern = classRegexp;
        mods[0].modKind = EventMod.ModKind.ClassMatch;
        Event event = new Event(eventKind, suspendPolicy, mods);

        // Set event
View Full Code Here

    public ReplyPacket setClassUnload(long referenceTypeID) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.CLASS_UNLOAD;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].clazz = referenceTypeID;
        mods[0].modKind = EventMod.ModKind.ClassOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);

        // Set event
View Full Code Here

     */
    public ReplyPacket setClassLoad(long referenceTypeID) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.CLASS_LOAD;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].clazz = referenceTypeID;
        mods[0].modKind = EventMod.ModKind.ClassOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);

        // Set event
View Full Code Here

            boolean uncaught) {
        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.EXCEPTION;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        EventMod[] mods = new EventMod[1];
        mods[0] = new EventMod();
        mods[0].modKind = EventMod.ModKind.ExceptionOnly;
        mods[0].caught = caught;
        mods[0].uncaught = uncaught;
        mods[0].exceptionOrNull = exceptionID;
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

        // Request referenceTypeID for exception
        long exceptionID = getClassID(exceptionSignature);
        byte eventKind = JDWPConstants.EventKind.EXCEPTION;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        EventMod[] mods = new EventMod[2];
        mods[0] = new EventMod();
        mods[0].modKind = EventMod.ModKind.ExceptionOnly;
        mods[0].caught = caught;
        mods[0].uncaught = uncaught;
        mods[0].exceptionOrNull = exceptionID;

        mods[1] = new EventMod();
        mods[1].modKind = EventMod.ModKind.Count;
        mods[1].count = count;
        Event event = new Event(eventKind, suspendPolicy, mods);

        return setEvent(event);
View Full Code Here

        EventMod[] mods = null;
        if (classRegexp == null) {
            mods = new EventMod[0];
        } else {
            mods = new EventMod[1];
            mods[0] = new EventMod();
            mods[0].modKind = EventMod.ModKind.ClassMatch;
            mods[0].classPattern = classRegexp;
        }
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

TOP

Related Classes of org.apache.harmony.jpda.tests.framework.jdwp.EventMod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.