ElementType
- The type like int[] or short[]abstract class FieldJc.GetSetContainerElement<ElementType,ArrayType>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
FieldJc.GetSetContainerElement.GetArray
Helper class containing a template method to get the last array and the last index
for indexed access.
|
Modifier and Type | Field and Description |
---|---|
(package private) FieldJc.GetSetContainerElement.GetArray |
getTypedArray
Instance containing the template-access method.
|
Constructor and Description |
---|
GetSetContainerElement() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract ElementType |
getValue(ArrayType array,
int ix) |
ElementType |
getValue(MemSegmJc obj,
int... ix)
Gets a value from a container-field.
|
(package private) abstract void |
setValue(ArrayType array,
ElementType element,
int ix) |
ElementType |
setValue(ElementType value,
MemSegmJc obj,
int... ix)
Gets a value from a container-field.
|
FieldJc.GetSetContainerElement.GetArray getTypedArray
public ElementType getValue(MemSegmJc obj, int... ix) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
obj
- The instance containing the field.ix
- indices, may be emptyjava.lang.IllegalArgumentException
java.lang.IllegalAccessException
public ElementType setValue(ElementType value, MemSegmJc obj, int... ix) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
obj
- The instance containing the field.ix
- indices, may be emptyjava.lang.IllegalArgumentException
java.lang.IllegalAccessException
abstract ElementType getValue(ArrayType array, int ix)
abstract void setValue(ArrayType array, ElementType element, int ix)