SquirrelJME/SquirrelJME

View on GitHub
modules/debug-jdwp/src/main/java/cc/squirreljme/jdwp/JDWPCommandSetEventRequest.java

Summary

Maintainability
A
0 mins
Test Coverage
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jdwp;

/**
 * Event request command set.
 *
 * @since 2021/03/12
 */
public enum JDWPCommandSetEventRequest
    implements JDWPCommand
{
    /** Set event requests. */
    SET(1),
    
    /** Clear event. */
    CLEAR(2),
    
    /** Clear all breakpoints. */
    CLEAR_ALL_BREAKPOINTS(3),
    
    /* End. */
    ;
    
    /** The ID of the packet. */
    public final int id;
    
    /**
     * Returns the ID used.
     * 
     * @param __id The ID used.
     * @since 2021/03/12
     */
    JDWPCommandSetEventRequest(int __id)
    {
        this.id = __id;
    }
    
    /**
     * {@inheritDoc}
     * @since 2021/03/12
     */
    @Override
    public final int debuggerId()
    {
        return this.id;
    }
}