org.pfsw.joi
Class ArrayElementSpy
java.lang.Object
org.pfsw.joi.Spy
org.pfsw.joi.ElementSpy
org.pfsw.joi.CollectionElementSpy
org.pfsw.joi.ArrayElementSpy
- All Implemented Interfaces:
- java.lang.Comparable
public class ArrayElementSpy
- extends CollectionElementSpy
Instances of this class are holding information about the elements
of an inspected object.
Fields inherited from class org.pfsw.joi.Spy |
PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, RENDERER_MAPPING_FILENAME, RENDERER_MAPPING_FILENAME_ALL, RENDERER_MAPPING_FILENAME_CLASSLOADER |
Constructor Summary |
ArrayElementSpy(AbstractObjectSpy container,
int pos,
java.lang.Object object,
java.lang.Class type)
Initialize the new instance with default values. |
Method Summary |
protected java.lang.Class |
getCurrentType()
Returns the type of the contained element. |
protected int |
getIndex()
|
java.lang.Class |
getType()
Returns the type of the entry values, which by default Object. |
protected void |
modifyValue(java.lang.Object newValue)
|
protected void |
setIndex(int newValue)
|
protected void |
setType(java.lang.Class aValue)
|
Methods inherited from class org.pfsw.joi.ElementSpy |
compareTo, getContainer, is_Boolean_or_boolean, is_Byte_or_byte, is_Character_or_char, is_Double_or_double, is_Float_or_float, is_Integer_or_int, is_Long_or_long, is_Short_or_short, isCorrectType, isEditable, isElementSpy, setContainer, setValue |
Methods inherited from class org.pfsw.joi.Spy |
getRendererRegistry, getTypeString, getTypeStringOf, getValueComponent, getValueString, getValueTypeString, invokeInspectString, is_boolean, is_byte, is_char, is_double, is_float, is_int, is_long, is_short, isPrimitive, objectAsComponent, objectAsString, rendererFor, setRendererRegistry, valueIsNull |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayElementSpy
public ArrayElementSpy(AbstractObjectSpy container,
int pos,
java.lang.Object object,
java.lang.Class type)
- Initialize the new instance with default values.
getType
public java.lang.Class getType()
- Description copied from class:
CollectionElementSpy
- Returns the type of the entry values, which by default Object.
Subclasses may override this.
- Overrides:
getType
in class CollectionElementSpy
setType
protected void setType(java.lang.Class aValue)
getIndex
protected int getIndex()
setIndex
protected void setIndex(int newValue)
getCurrentType
protected java.lang.Class getCurrentType()
- Returns the type of the contained element.
- Overrides:
getCurrentType
in class CollectionElementSpy
modifyValue
protected void modifyValue(java.lang.Object newValue)
throws java.lang.Exception
- Overrides:
modifyValue
in class ElementSpy
- Throws:
java.lang.Exception