public class ArrayReferenceImpl extends Object implements ArrayReference
Constructor and Description |
---|
ArrayReferenceImpl(Object root,
String rootField) |
Modifier and Type | Method and Description |
---|---|
void |
addNestedArrayIndex(Integer index) |
List<Integer> |
getNestedArrayIndices()
If the root field is a direct reference to the array this will be null.
|
String |
getRootField() |
Object |
getRootObject() |
String |
toString() |
public Object getRootObject()
getRootObject
in interface ArrayReference
public String getRootField()
getRootField
in interface ArrayReference
public void addNestedArrayIndex(Integer index)
public List<Integer> getNestedArrayIndices()
ArrayReference
class POJO{ int[] i; } POJO pojo = new POJO(); int[] i arr = new int[]{1}; pojo.i = arr;getNestedArrayIndices will be null for arr.If we have:
class POJO{ int[][][] i; } POJO pojo = new POJO(); int[] arr = new int[]{1}; pojo.i = new int[][][]{new int[][]{new int[]{1}}, new int[][]{new int[]{2}, new int[]{3}, arr}};getNestedArrayIndices will {1,2} for arr.
getNestedArrayIndices
in interface ArrayReference
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.