public class MethodData extends Object implements Comparable
Constructor and Description |
---|
MethodData(String metafacadeNameIn,
String visibilityIn,
boolean isAbstractIn,
String returnTypeNameIn,
String nameIn,
String documentationIn) |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(ArgumentData argument) |
void |
addException(String typeName) |
String |
buildCharacteristicKey()
Builds a signature which can be used as a key into a map.
|
String |
buildMethodCall()
Builds a string representing a call to the method.
|
String |
buildMethodDeclaration(boolean suppressAbstractDeclaration)
Builds a string representing a declaration for this method.
|
int |
compareTo(Object object) |
Collection<ArgumentData> |
getArguments() |
String |
getDocumentation()
Gets the documentation for this method.
|
Collection<String> |
getExceptions() |
String |
getMetafacadeName()
Gets the metafacade name.
|
String |
getName()
Gets the name of the method.
|
String |
getReturnTypeName()
Gets the name of the return type for this method.
|
String |
getTypedArgumentList()
Builds a string representing a comma separated parameter type + name list.
|
String |
getTypedArgumentList(String modifier)
Builds a string representing a comma separated parameter type + name list.
|
String |
getVisibility()
Gets the visibility of this method.
|
boolean |
isAbstract()
Indicates whether or not this method is abstract.
|
boolean |
isReturnTypePresent()
Tells if this method returns something.
|
String |
toString() |
public void addArgument(ArgumentData argument)
argument
- public Collection<ArgumentData> getArguments()
public void addException(String typeName)
typeName
- public Collection<String> getExceptions()
public String getMetafacadeName()
public String getReturnTypeName()
public String buildMethodDeclaration(boolean suppressAbstractDeclaration)
suppressAbstractDeclaration
- optionally suppress the "abstract" modifierpublic String getTypedArgumentList()
public String getTypedArgumentList(String modifier)
modifier
- Optional modifier before each parameterpublic String buildMethodCall()
public String buildCharacteristicKey()
public boolean isAbstract()
public String getVisibility()
public String getDocumentation()
public boolean isReturnTypePresent()
public int compareTo(Object object)
compareTo
in interface Comparable
Comparable.compareTo(Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.