Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

How to get the input file's class without knowing it (java)

, 6 Nov 2012 CPOL
Hi, I can't figure out, how to use getDeclaredMethods() (reflection) if the user chooses the file from GUI.Something like this:Class inclass= Class.forName("ClassName");Method[] methods = inclass.getDeclaredMethods(); But I don't know "ClassName", I get it later.I'd like to get...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 6-Nov-12 7:37 Available Nelek
Updates in content. 394 changes had been made.
1 No 5-Nov-12 19:02 Available AllainLG

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

AllainLG

United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.1 | Last Updated 6 Nov 2012
Article Copyright 2012 by AllainLG
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid