package edu.calpoly.cpe205.fetter; import javax.swing.*; import java.util.*; import java.io.*; import java.lang.reflect.*; import java.lang.*; import java.awt.*; import javax.swing.event.*; import java.awt.event.*; /** * Classes that want to provide information about a Method (return type, * name, the types of the Method's parameters) to other ETA * classes or allow other ETA classes to invoke a Method * must implement this interface. */ // Author: Brian Laird // Version History // Nov 19, 2000 - added descriptions // Nov 30, 2000 - (Mike Hebron) updated class description public interface MethodDataInterface { /** * Returns the name of the parameter *

* Pre-conditions: none * Post-conditions: the parameter name is returned * @return a string containing the name of the parameter */ public String getName(); /** * Returns the modifier of the parameter *

* Pre-conditions: none * Post-conditions: the parameter modifier is returned * @return a string containing the modifier of the parameter */ public int getModifiers(); /** * Returns the returnType of the parameter *

* Pre-conditions: none * Post-conditions: the parameter return type is returned * @return a string containing the return type of the parameter */ public String getReturnType(); /** * Returns the declaring class of the parameter *

* Pre-conditions: none * Post-conditions: the parameter declaring class is returned * @return a string containing the declaring class of the parameter */ public String getDeclaringClass(); /** * Returns array of parameter type names of the parameter *

* Pre-conditions: none * Post-conditions: the array of parameter type names is returned * @return an array of String containing the names of the Parameter types */ public String[] getParameterTypeNames(); /** * Creates and runs a new thread. *

* Pre-conditions: none * Post-conditions: A new thread is created */ public void invokeMethod(); /** * Adds a user created primitive into the object pool and parameter combo * boxes based on passed Strings *

* Pre-conditions: none * Post-conditions: primitive has been created and put into the object pool */ public void createPrimitive(String val, String typeName); }