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 StringgetBodyCode()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.ObjectModelParametergetReturnParameter()Return the return parameter of the operationStringgetReturnType()Returns the return type of this operation.StringgetVisibility()Returns the visibility of this operation.booleanisAbstract()Returns whether this operation is abstract or not.booleanisDefault()Returns whether this operation is default or not.booleanisFinal()Returns whether this operation is final 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 includes public, protected and private.- 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.
-
isDefault
boolean isDefault()
Returns whether this operation is default or not. (See java 8).- Returns:
- a boolean indicating whether this operation is default or not.
-
isFinal
boolean isFinal()
Returns whether this operation is final or not.- Returns:
- a boolean indicating whether this operation is final 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)
-
-