Next
Previous Table of Contents
JMirror
is a Java application developed as an exercise
for the class CS765 "Java" at Stevens Instititute of Technology.
Through the use of the java.lang.reflect package, it
provides the ability to:
- load an arbitrary class given the class name
the class has to be in the
CLASSPATH environment
variable
- display all class information such as constructors,
methods, data members; public, protected and private
members are displayed. The information is sorted by
inheritance: the classes declared members are
displayed first, inherited members later. This
information is displayed in a tree on the left side.
- call arbitrary methods or constructors of a class and
store their return values. Through the use of this
ability, it is possible to create new Widgets, and
utilize them much like an application builder (such
as NetBeans). Caution must be taken not to execute
any method that terminates the JVM (ie inlcudes a
System.exit()-call) - otherwise JMirror will be
closed as well.
- store return values of methods and constructors to be
later used as "this" or parameters for
method/constructor calls. While JMirror attempts to
prevent the user from passing invalid arguments to a
function, this may notalways be entirely possible.
As a result, an executed method might throw an
exception, which will be indicated by a short message
in the Application's Console.
- inspect and set values of class members of primitive
data types. In addition to primitive data types,
JMirror also displays Strings and character-array's.
Next
Previous Table of Contents