All the examples I look at for reflection show creating a new instance of an unknown implementation, and casting that implementation to it's interface. The issue with this is that now ...
"SA" is an inner class, which means it is associated with an instance of the outer class "A". Using "this" within the body of "SA" refers to the current instance of "SA"; using "A.this" refers to the associated instance of "A". Although it looks like a static reference, it is just notation used to reference the other "this". EDIT: Eclipse says ...
hi , i have large number of class fields(variables) , and i want to create a general function that will act on them , by passing thier names , can reflection assist in that , if yes - how , can you give an example ? let say sorting a collection of class Task , by it's field elements (some int, ...