SquirrelJME/SquirrelJME

View on GitHub
modules/tool-classfile/src/main/java/net/multiphasicapps/classfile/AnnotationValueClass.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 net.multiphasicapps.classfile;

import cc.squirreljme.runtime.cldc.debug.Debugging;

/**
 * This is an annotation value which represents a class.
 *
 * @since 2018/06/16
 */
public final class AnnotationValueClass
    implements AnnotationValue
{
    /** The class name. */
    protected final FieldDescriptor name;
    
    /**
     * Initializes the class annotation.
     *
     * @param __n The name used
     * @throws NullPointerException On null arguments.
     * @since 2019/04/01
     */
    public AnnotationValueClass(FieldDescriptor __n)
        throws NullPointerException
    {
        if (__n == null)
            throw new NullPointerException("NARG");
        
        this.name = __n;
    }
    
    /**
     * {@inheritDoc}
     * @since 2018/06/16
     */
    @Override
    public final boolean equals(Object __o)
    {
        throw Debugging.todo();
    }
    
    /**
     * {@inheritDoc}
     * @since 2018/06/16
     */
    @Override
    public final int hashCode()
    {
        throw Debugging.todo();
    }
    
    /**
     * {@inheritDoc}
     * @since 2018/06/16
     */
    @Override
    public final String toString()
    {
        throw Debugging.todo();
    }
}