SquirrelJME/SquirrelJME

View on GitHub
modules/debug-jdwp/src/main/java/cc/squirreljme/jdwp/JDWPCommandSetObjectReference.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;

/**
 * Object reference command set.
 *
 * @since 2021/03/14
 */
public enum JDWPCommandSetObjectReference
    implements JDWPCommand
{
    /** The type that an object is. */
    REFERENCE_TYPE(1),
    
    /** Get field values. */
    GET_VALUES(2),
    
    /** Is this object garbage collected? */
    IS_COLLECTED(9),
    
    /* End. */
    ;
    
    /** The ID of the packet. */
    public final int id;
    
    /**
     * Returns the ID used.
     * 
     * @param __id The ID used.
     * @since 2021/03/14
     */
    JDWPCommandSetObjectReference(int __id)
    {
        this.id = __id;
    }
    
    /**
     * {@inheritDoc}
     * @since 2021/03/14
     */
    @Override
    public final int debuggerId()
    {
        return this.id;
    }
}