public class MethodInfo extends java.lang.Object implements java.lang.Comparable<MethodInfo>
ClassInfo
Constructor and Description |
---|
MethodInfo()
Create a new, empty MethodInfo object.
|
MethodInfo(int access,
java.lang.String name,
java.lang.String description,
java.lang.String signature,
java.lang.String[] exceptions)
Create and initialize a new MethodInfo object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MethodInfo other)
Compare this object and another MethodInfo object.
|
boolean |
equals(java.lang.Object other)
Compare this object to another one for equality.
|
int |
getAccess()
Get the access modifiers for this method.
|
java.lang.String |
getDescription()
Get the method description, if any.
|
java.lang.String[] |
getExceptions()
Get the class names of the thrown exceptions
|
java.lang.String |
getName()
Get the method name.
|
java.lang.String |
getSignature()
Get the method's signature, if any.
|
int |
hashCode()
Get the hash code.
|
java.lang.String |
toString()
Return a string representation of the method.
|
public MethodInfo()
public MethodInfo(int access, java.lang.String name, java.lang.String description, java.lang.String signature, java.lang.String[] exceptions)
access
- method access modifiers, etc.name
- method namedescription
- method descriptionsignature
- method signatureexceptions
- list of thrown exceptions (by name)public int getAccess()
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getSignature()
public java.lang.String[] getExceptions()
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(MethodInfo other)
compareTo
in interface java.lang.Comparable<MethodInfo>
other
- the other objectpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other objectpublic java.lang.String toString()
toString
in class java.lang.Object