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

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


    public ReplyPacket setCountableMethodEntry(String classRegexp, int count) {
        byte eventKind = JDWPConstants.EventKind.METHOD_ENTRY;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        EventMod[] mods = null;
        if (classRegexp == null) {
            mods = new EventMod[] { new EventMod() };
            mods[0].modKind = EventMod.ModKind.Count;
            mods[0].count = count;
        } else {
            mods = new EventMod[2];
            mods[0] = new EventMod();
            mods[0].modKind = EventMod.ModKind.ClassMatch;
            mods[0].classPattern = classRegexp;

            mods[1] = new EventMod();
            mods[1].modKind = EventMod.ModKind.Count;
            mods[1].count = count;
        }
        Event event = new Event(eventKind, suspendPolicy, mods);
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

    public ReplyPacket setCountableMethodExit(String classRegexp, int count) {
        byte eventKind = JDWPConstants.EventKind.METHOD_EXIT;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        EventMod[] mods = null;
        if (classRegexp == null) {
            mods = new EventMod[] { new EventMod() };
            mods[0].modKind = EventMod.ModKind.Count;
            mods[0].count = count;
        } else {
            mods = new EventMod[2];
            mods[0] = new EventMod();
            mods[0].modKind = EventMod.ModKind.ClassMatch;
            mods[0].classPattern = classRegexp;

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

        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.FIELD_ACCESS;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].fieldID = fieldID;
        mods[0].declaring = typeID;
        mods[0].modKind = EventMod.ModKind.FieldOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.FIELD_MODIFICATION;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].fieldID = fieldID;
        mods[0].declaring = typeID;
        mods[0].modKind = EventMod.ModKind.FieldOnly;
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

        // Prepare corresponding event
        byte eventKind = JDWPConstants.EventKind.SINGLE_STEP;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        // EventMod[] mods = new EventMod[1];
        EventMod[] mods = new EventMod[] { new EventMod() };
        mods[0].thread = typeID;
        mods[0].modKind = EventMod.ModKind.Step;
        mods[0].size = stepSize;
        mods[0].depth = stepDepth;
        Event event = new Event(eventKind, suspendPolicy, mods);
View Full Code Here

        byte eventKind = JDWPConstants.EventKind.SINGLE_STEP;
        byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
        int modsSize = classRegexp.length + 1;
        EventMod[] mods = new EventMod[modsSize];
        for (int i = 0; i < classRegexp.length; i++) {
            mods[i] = new EventMod();
            mods[i].classPattern = classRegexp[i];
            mods[i].modKind = EventMod.ModKind.ClassExclude;
        }

        int index = modsSize - 1;
        mods[index] = new EventMod();
        mods[index].modKind = EventMod.ModKind.Step;
        mods[index].thread = threadID;
        mods[index].size = stepSize;
        mods[index].depth = stepDepth;
View Full Code Here

    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

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.