ParamAPIpublic class ParamAPI extends Object implements ComparableClass to represent any (name, type) pair such as a parameter.
Analogous to ParamType in the Javadoc doclet API.
The method used for Collection comparison (compareTo) must make its
comparison based upon everything that is known about this parameter.
See the file LICENSE.txt for copyright details. |
Fields Summary |
---|
public String | name_Name of the (name, type) pair. | public String | type_Type of the (name, type) pair. |
Constructors Summary |
---|
public ParamAPI(String name, String type)
name_ = name;
type_ = type;
|
Methods Summary |
---|
public int | compareTo(java.lang.Object o)Compare two ParamAPI objects using both name and type.
ParamAPI oParamAPI = (ParamAPI)o;
int comp = name_.compareTo(oParamAPI.name_);
if (comp != 0)
return comp;
comp = type_.compareTo(oParamAPI.type_);
if (comp != 0)
return comp;
return 0;
| public boolean | equals(java.lang.Object o)Tests two ParamAPI objects using just the name, used by indexOf().
if (name_.compareTo(((ParamAPI)o).name_) == 0)
return true;
return false;
| public java.lang.String | toString()Used to create signatures.
if (type_.compareTo("void") == 0)
return "";
return type_;
|
|