|
How do I get a JavaClass from a Resource? |
|
for (Iterator i=resource.getClassifiers().iterator(); i.hasNext();) {
JavaClass curr = (JavaClass) i.next();
// do something
}
|
This will iterate through all top-level classes in a given source file (in most cases there is only one top-level class).
Source: NetBeans FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.