Remove exported everywhere.
[SquirrelJME.git] / modules / debug-jdwp / src / main / java / cc / squirreljme / jdwp / views / JDWPViewObject.java
blobc92fea239353510aff2960556c5675eac71e3e59
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.jdwp.views;
12 import cc.squirreljme.jdwp.JDWPValue;
13 import cc.squirreljme.runtime.cldc.annotation.Exported;
15 /**
16 * An object viewer.
18 * @since 2021/04/10
20 public interface JDWPViewObject
21 extends JDWPViewValidObject
23 /**
24 * Returns the array length.
26 * @param __which The object to get the length of.
27 * @return The array length, negative for objects that are not arrays.
28 * @since 2021/04/11
30 int arrayLength(Object __which);
32 /**
33 * Is this a null object?
35 * @param __value The object to check.
36 * @return If it is {@code null} or not.
37 * @since 2022/09/21
39 boolean isNullObject(Object __value);
41 /**
42 * Reads the value of an array index within the object.
44 * @param __which What is being read from?
45 * @param __index The index of the array to read from.
46 * @param __out Where the value is to be stored.
47 * @return {@code true} if this is a valid value.
48 * @since 2021/04/10
50 boolean readArray(Object __which, int __index, JDWPValue __out);
52 /**
53 * Reads the value of an instance field within the object.
55 * @param __which What is being read from?
56 * @param __index The index of the field to read from the object.
57 * @param __out Where the value is to be stored.
58 * @return {@code true} if this is a valid value.
59 * @since 2021/04/10
61 boolean readValue(Object __which, int __index, JDWPValue __out);
63 /**
64 * Returns the object type.
66 * @param __which Which object to get the type of.
67 * @return The type of the given object.
68 * @since 2021/04/11
70 Object type(Object __which);