| java.lang.Object csdl.jblanket.methodset.MethodInfo
MethodInfo | public class MethodInfo (Code) | | Implements the MethodInfo abstract data type, which provides information
about a single Java method. Method instances are managed by the
MethodSet container.
author: Philip Johnson version: $Id: MethodInfo.java,v 1.1 2004/11/07 00:32:38 timshadel Exp $ |
Constructor Summary | |
public | MethodInfo(String className, String methodName, List parameterTypeList) Creates a Method representing information about a Method's type signature. |
Method Summary | |
public int | compareTo(Object obj) Implements the "natural ordering" for methods.
Methods are ordered by their string representation.
Parameters: obj - A method instance. | public boolean | equals(Object obj) Two Methods are equal() iff their string representations are equal.
Parameters: obj - An object, which could or could not be a method. | public String | getClassName() Returns the fully qualified class name. | public String | getMethodName() Returns the method name. | String | getMethodString() Returns a string representation of the methodInfo, used only for comparison
purposes in the MethodSet container. | public String | getPackageName() Returns the package corresponding to this method. | public List | getParameterTypeList() Returns the list of parameter types. | public int | hashCode() Compute the hashcode following recommendations in "Effective Java". | public static void | main(String args) Main for one-off testing of this data structure. | public String | toString() Provides a readable representation of the Method. |
MethodInfo | public MethodInfo(String className, String methodName, List parameterTypeList)(Code) | | Creates a Method representing information about a Method's type signature.
Parameters: className - The fully qualified class name, such as "java.lang.String". Parameters: methodName - The method name without parentheses, such as "getBaz". Parameters: parameterTypeList - A list, in order, of fully qualified class namescorresponding to the parameters that this method is invoked with. |
compareTo | public int compareTo(Object obj)(Code) | | Implements the "natural ordering" for methods.
Methods are ordered by their string representation.
Parameters: obj - A method instance. Standard compareTo return values. |
equals | public boolean equals(Object obj)(Code) | | Two Methods are equal() iff their string representations are equal.
Parameters: obj - An object, which could or could not be a method. True if equal. |
getClassName | public String getClassName()(Code) | | Returns the fully qualified class name.
The fully qualified class name. |
getMethodName | public String getMethodName()(Code) | | Returns the method name.
The method name. |
getMethodString | String getMethodString()(Code) | | Returns a string representation of the methodInfo, used only for comparison
purposes in the MethodSet container.
The fully qualified class name. |
getPackageName | public String getPackageName()(Code) | | Returns the package corresponding to this method. For example, if the method's
class name is "java.lang.String", then the package is "java.lang". If the
method is not in a package, then the empty string is returned.
The package string. |
getParameterTypeList | public List getParameterTypeList()(Code) | | Returns the list of parameter types.
Note that this list is not copied, so changes made to this list instance
by the client will modify this method's internal representation!
The parameter type list. |
hashCode | public int hashCode()(Code) | | Compute the hashcode following recommendations in "Effective Java".
The hashcode. |
main | public static void main(String args)(Code) | | Main for one-off testing of this data structure.
Parameters: args - Ignored. |
toString | public String toString()(Code) | | Provides a readable representation of the Method.
The MethodSet as a string. |
|
|