JET

edu.utep.cs.et.gui.tester
Class EtClass

java.lang.Object
  extended by edu.utep.cs.et.gui.tester.EtClass
All Implemented Interfaces:
Constants

 class EtClass
extends Object
implements Constants

A wrapper class to the java.lang.Class class to attach testing-specific data.

Version:
$Revision: 1.11 $
Author:
Yoonsik Cheon

Field Summary
private  Class clazz
          The wrapped class.
private  List<EtMethod> methods
          The list of non-synthesized methods and constructors of this class.
 
Fields inherited from interface edu.utep.cs.et.gui.Constants
CLASS_EXTENSION, COLOR_EXPLORER, COLOR_OUTPUT, COPYRIGHT, DEBUG, DIVIDER_SIZE, EDIT_MENU_NAME, EXPLORER_DIR, EXPLORER_ROOT, FILE_MENU_NAME, HELP_MENU_NAME, ICON_ABOUT, ICON_ABSTRACT_CLASS, ICON_BROWSER, ICON_CLASS, ICON_CLASS_DISABLED, ICON_DELETE, ICON_ERROR, ICON_FILE, ICON_FOLDER, ICON_GEN_APP, ICON_HOME, ICON_INFORM, ICON_INTERFACE, ICON_JAVA_FILE, ICON_JML_LOGO, ICON_METHOD, ICON_METHOD_GREEN, ICON_METHOD_ORANGE, ICON_METHOD_RED, ICON_MINER, ICON_NEW, ICON_NEWTESTSUITE, ICON_NOTE, ICON_OPEN, ICON_OUTPUT, ICON_PREFERENCES, ICON_QUESTION, ICON_REDO, ICON_SAVE_AS, ICON_TEST_FILE, ICON_UNDO, ICON_UNKOWN, ICON_WARN, JAVA, JAVA_EXTENSION, JAVAC, JUNIT_SWINGGUI_TESTRUNNER, NEWLINE, OPTION_MENU_NAME, TEST_MENU_NAME, TITLE, TOOL_MENU_NAME, VERSION, WEB_PAGE_LOCATION, WEB_PAGE_NAME, WINDOW_HEIGHT, WINDOW_MIN_HEIGHT, WINDOW_MIN_WIDTH, WINDOW_WIDTH
 
Constructor Summary
EtClass(Class clazz)
          Creates a wrapper for the given class.
 
Method Summary
 Class clazz()
          Returns the wrapped class.
 Iterable<EtMethod> inheritableMethods()
          Returns an iterator to iterate over all the methods of this class that are inherited by the given subclasses.
private  void initialize()
          Collects all the non-synthesized public methods and consturctors of the wrapped class and stores them to an internal data structure.
 Iterable<EtMethod> methods()
          Returns an iterator to iterate over all the methods of this class.
 String name()
          Returns the name of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private Class clazz
The wrapped class.


methods

private List<EtMethod> methods
The list of non-synthesized methods and constructors of this class.

Constructor Detail

EtClass

public EtClass(Class clazz)
Creates a wrapper for the given class.

Method Detail

methods

public Iterable<EtMethod> methods()
Returns an iterator to iterate over all the methods of this class.


inheritableMethods

public Iterable<EtMethod> inheritableMethods()
Returns an iterator to iterate over all the methods of this class that are inherited by the given subclasses.


clazz

public Class clazz()
Returns the wrapped class.


name

public String name()
Returns the name of this class.


initialize

private void initialize()
Collects all the non-synthesized public methods and consturctors of the wrapped class and stores them to an internal data structure.


JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.