I wonder is there a way to get all private fields of some class in Java and their type.
For example lets suppose I have a class:
class SomeClass {
private String aaa;
private SomeOtherClass bbb;
private double ccc;
}
Now I would like to get all private fields (aaa, bbb, ccc) of class SomeClass (Without knowing name of all fields upfront) and check their type.