edu.pdx.cs399J.examples
Class Reflect

java.lang.Object
  extended by edu.pdx.cs399J.examples.Reflect

public class Reflect
extends Object

This class demonstrates Java's reflection mechanism by loading a class and then printing out information about its fields and methods.

Author:
David Whitlock

Constructor Summary
Reflect()
           
 
Method Summary
static void main(String[] args)
          Reads a class name from the command line, loads it and prints out information about it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflect

public Reflect()
Method Detail

main

public static void main(String[] args)
Reads a class name from the command line, loads it and prints out information about it.



Copyright © 2000-2009 Portland State University. All Rights Reserved.