code for interlysence in java - for example Point p = new Point() , how to get variables of p.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, June 6, 2001 09:19 AM

I have created an editor for java programing using java.
for example in the text area of the editor , if i type point p = new Point()
and if i type 'p.'(p dot) in the edit or i should get all the variables available in the class point and display it in console.

Re: code for interlysence in java - for example Point p = new Point() , how to get variables of p.

Posted By:   Michael_Wax  
Posted On:   Wednesday, June 6, 2001 09:45 AM

You need to use reflection to discover the methods and fields in the target class. See the methods getFields, getMethods, and getConstructors in Class.
About | Sitemap | Contact