I want to access O object's attributes using java reflection.
O.getClass().getFields() returns only public attributes and all inherited.
O.getClass().getDeclaredFields() returns public and private attributes. But none of the inherited.
how can i get ALL Attributes in object O.
I would really appreciate your help and if any sample code.
thanks,
pjani
O.getClass().getFields() returns only public attributes and all inherited.
O.getClass().getDeclaredFields() returns public and private attributes. But none of the inherited.
how can i get ALL Attributes in object O.
I would really appreciate your help and if any sample code.
thanks,
pjani