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
Post a Comment