FileDocCategorySizeDatePackage
Reflect1.javaAPI DocExample696Sat Nov 25 12:55:26 GMT 2000None

Reflect1

public class Reflect1 extends Object
Reflect1 shows the information about the class named in argv[0]. "Reflectance" is used to look up that information.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		new Reflect1().run(args);
	
public voidrun(java.lang.String[] classes)

		for (int i=0; i<classes.length; i++)
			try {
				Class c = Class.forName(classes[i]);
				Method methods[] = c.getMethods();
				for (int m = 0; m < methods.length; m++)
					System.out.println(methods[m].toString());
			} catch (ClassNotFoundException e) {
				System.err.println("Error: Class " + 
					classes[i] + " not found!");
			} catch (Exception e) {
				System.err.println(e);
			}