![]()
(chat, newsreader, calendar)
|
![]() |
|
|
|
Course Notes Table of Contents Exercises | Online Training Index
|
|
Reflective Programming with Freud
MageLang Institute
|
[Help | Solution |
API Docs |
Behavior |
Course Notes |
Exercises]
Skeleton CodeUse of the reflection API is important when creating tools. They need to be able to inspect Java Beans to see how they work. This exercise shows you how to duplicate javap functionality through the use of the Reflection/Introspection capabilities of Java.
Perform the following tasks:
The skeleton code currently lists class variables and constructors of any class requested. It is your job to have it also list all the methods. The framework is included, you only need to complete the listClassMethods method. Within listClassMethods: for each method of the class, list the modifiers, return type, name, and parameter types.
|
|
Copyright © 1997 MageLang Institute. All Rights Reserved May-97 Copyright © 1996, 1997 Sun Microsystems Inc. All Rights Reserved |