Package org.nuiton.eugene.models.object
Interface ObjectModelOperation
-
- All Superinterfaces:
ObjectModelElement
,WithTagValuesOrStereotypes
- All Known Implementing Classes:
ObjectModelOperationImpl
public interface ObjectModelOperation extends ObjectModelElement
Abstraction for the operation node of object model trees. This object presents all information concerning the given operation. Created: 14 janv. 2004- Author:
- Cédric Pineau - pineau@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBodyCode()
Return body of the operation (source code)Set<String>
getExceptions()
Returns all exception qualified names thrown by this operation (as strings)Collection<ObjectModelParameter>
getParameters()
Returns all parameters defined on this operation.ObjectModelParameter
getReturnParameter()
Return the return parameter of the operationString
getReturnType()
Returns the return type of this operation.String
getVisibility()
Returns the visibility of this operation.boolean
isAbstract()
Returns whether this operation is abstract or not.-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelElement
getComments, getDeclaringElement, getDescription, getDocumentation, getName, getSourceDocumentation, isStatic
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Method Detail
-
getReturnType
String getReturnType()
Returns the return type of this operation.- Returns:
- the return type of this operation.
-
getVisibility
String getVisibility()
Returns the visibility of this operation. Possible values includespublic
,protected
andprivate
.- Returns:
- the visibility of this operation.
-
isAbstract
boolean isAbstract()
Returns whether this operation is abstract or not.- Returns:
- a boolean indicating whether this operation is abstract or not.
-
getParameters
Collection<ObjectModelParameter> getParameters()
Returns all parameters defined on this operation.- Returns:
- a Collection containing all parameters defined on this operation.
- See Also:
ObjectModelParameter
-
getReturnParameter
ObjectModelParameter getReturnParameter()
Return the return parameter of the operation- Returns:
- an ObjectModelParameter representing the return parameter
-
getExceptions
Set<String> getExceptions()
Returns all exception qualified names thrown by this operation (as strings)- Returns:
- a Set containing the exceptions strings
-
getBodyCode
String getBodyCode()
Return body of the operation (source code)- Returns:
- body of the operation (source code)
-
-