1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
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
;
20 public interface JDWPViewObject
21 extends JDWPViewValidObject
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.
30 int arrayLength(Object __which
);
33 * Is this a null object?
35 * @param __value The object to check.
36 * @return If it is {@code null} or not.
39 boolean isNullObject(Object __value
);
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.
50 boolean readArray(Object __which
, int __index
, JDWPValue __out
);
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.
61 boolean readValue(Object __which
, int __index
, JDWPValue __out
);
64 * Returns the object type.
66 * @param __which Which object to get the type of.
67 * @return The type of the given object.
70 Object
type(Object __which
);