|
Lima-Loa | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.limaloa.Method
public final class Method
Encapsulates a method. Designed as an immutable value object.
Constructor Summary | |
---|---|
Method(java.lang.String name)
Creates a new method, selecting by method name alone. |
|
Method(java.lang.String name,
java.util.List<Parameter> parameters)
Creates a new method. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Value equality. |
java.lang.String |
getName()
Get the method name. |
java.util.List<Parameter> |
getParameters()
Get the method parameters (if not selecting by method name alone). |
int |
hashCode()
Hash code, consistent with value equality. |
boolean |
isAnyParameters()
Get whether to select by method name alone. |
java.lang.String |
toString()
Converts an instance to a string. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Method(java.lang.String name)
name
- The name of the methodpublic Method(java.lang.String name, java.util.List<Parameter> parameters)
name
- The name of the methodparameters
- List of ParameterMethod Detail |
---|
public java.lang.String getName()
public boolean isAnyParameters()
true
if select by method name alonepublic java.util.List<Parameter> getParameters()
null
.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare
true
if of equal valuepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Lima-Loa | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |