java - Check if Field is from specific class -


to display keys & values of dataobject, i'm using collection of accessibleobjects generate table. accessibleobject's collected on specific time, values read, when render have render table.

the problem: i'm not want hold accessibleobject's of 1 specific class. possible check accessibleobject class-origin? e.g. accessibleobject.fromclass(classtype);

do mean

member member = field or method; class clazz = member.getdeclaringclass() 

to class field appears in.

note: actual class, not class might have used up. e.g. has field x , subclass b. if field x of class b, declaring class a. because , b can have field called x.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -