A
askmax
Hi,
Can anyone please tell me how I would access a subclass members with
reflection.
So for example:
public class MyTestClass
{
public class SourceObj
{
String mytest1;
}
String mytest1;
int mytest2;
long mytest3;
List<String> mytest4 = new java.util.ArrayList<String>();
HashMap<String,String> mytest5 = new HashMap<String, String>();
SourceObj mytest6 = new SourceObj();
}
I want to set the value of mytest6.mytest1
Thanks,
Max
Can anyone please tell me how I would access a subclass members with
reflection.
So for example:
public class MyTestClass
{
public class SourceObj
{
String mytest1;
}
String mytest1;
int mytest2;
long mytest3;
List<String> mytest4 = new java.util.ArrayList<String>();
HashMap<String,String> mytest5 = new HashMap<String, String>();
SourceObj mytest6 = new SourceObj();
}
I want to set the value of mytest6.mytest1
Thanks,
Max