Java - Reflection?

i have one class called "MainClass" and this class contain setter and getter method like

class MainClass{

int intValue;

String str;

boolean bool;

int getInt(){}

void setInt(){}

String getStr(){}

void setStr(){}

boolean isBool(){}

}

how can i get the setter methods from the MainClass using Reflection mechanism?

Please help me guys,

Thanks

tamil

[985 byte] By [tamilvanana] at [2007-11-27 10:10:31]
# 1
http://java.sun.com/docs/books/tutorial/reflect/I'd use introspection, rather than low-level reflection.
jverda at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...
# 2
> I'd use introspectionWhat is introspection?
BIJ001a at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...
# 3
> What is introspection? http://java.sun.com/docs/books/tutorial/javabeans/introspection/index.html
Yannixa at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...
# 4
> > I'd use introspection> > What is introspection?Google it.
jverda at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...
# 5
Yannix: thanks for the hint.
BIJ001a at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...
# 6
> > > I'd use introspection> > > > What is introspection?> > Google it.What is Google? :-/
jGardnera at 2007-7-13 0:47:24 > top of Java-index,Java Essentials,Java Programming...