Package org.eclipse.gmt.modisco.java
Interface MethodDeclaration
- All Superinterfaces:
AbstractMethodDeclaration,ASTNode,BodyDeclaration,org.eclipse.emf.ecore.EObject,NamedElement,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
UnresolvedMethodDeclaration
- All Known Implementing Classes:
MethodDeclarationImpl,UnresolvedMethodDeclarationImpl
public interface MethodDeclaration extends AbstractMethodDeclaration
A representation of the model object 'Method Declaration'.
The following features are supported:
- See Also:
JavaPackage.getMethodDeclaration()
-
Method Summary
Modifier and Type Method Description intgetExtraArrayDimensions()Returns the value of the 'Extra Array Dimensions' attribute.MethodDeclarationgetRedefinedMethodDeclaration()Returns the value of the 'Redefined Method Declaration' reference.org.eclipse.emf.common.util.EList<MethodDeclaration>getRedefinitions()Returns the value of the 'Redefinitions' reference list.TypeAccessgetReturnType()Returns the value of the 'Return Type' containment reference.voidsetExtraArrayDimensions(int value)Sets the value of the 'Extra Array Dimensions' attribute.voidsetRedefinedMethodDeclaration(MethodDeclaration value)Sets the value of the 'Redefined Method Declaration' reference.voidsetReturnType(TypeAccess value)Sets the value of the 'Return Type' containment reference.Methods inherited from interface org.eclipse.gmt.modisco.java.AbstractMethodDeclaration
getBody, getParameters, getThrownExceptions, getTypeParameters, getUsages, getUsagesInDocComments, setBodyMethods inherited from interface org.eclipse.gmt.modisco.java.ASTNode
getComments, getOriginalClassFile, getOriginalCompilationUnit, setOriginalClassFile, setOriginalCompilationUnitMethods inherited from interface org.eclipse.gmt.modisco.java.BodyDeclaration
getAbstractTypeDeclaration, getAnnotations, getAnonymousClassDeclarationOwner, getModifier, setAbstractTypeDeclaration, setAnonymousClassDeclarationOwner, setModifierMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.gmt.modisco.java.NamedElement
getName, getUsagesInImports, isProxy, setName, setProxyMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getExtraArrayDimensions
int getExtraArrayDimensions()Returns the value of the 'Extra Array Dimensions' attribute.- Returns:
- the value of the 'Extra Array Dimensions' attribute.
- See Also:
setExtraArrayDimensions(int),JavaPackage.getMethodDeclaration_ExtraArrayDimensions()
-
setExtraArrayDimensions
void setExtraArrayDimensions(int value)Sets the value of the 'Extra Array Dimensions' attribute.- Parameters:
value- the new value of the 'Extra Array Dimensions' attribute.- See Also:
getExtraArrayDimensions()
-
getReturnType
TypeAccess getReturnType()Returns the value of the 'Return Type' containment reference.- Returns:
- the value of the 'Return Type' containment reference.
- See Also:
setReturnType(TypeAccess),JavaPackage.getMethodDeclaration_ReturnType()
-
setReturnType
Sets the value of the 'Return Type' containment reference.- Parameters:
value- the new value of the 'Return Type' containment reference.- See Also:
getReturnType()
-
getRedefinedMethodDeclaration
MethodDeclaration getRedefinedMethodDeclaration()Returns the value of the 'Redefined Method Declaration' reference. It is bidirectional and its opposite is 'Redefinitions'.- Returns:
- the value of the 'Redefined Method Declaration' reference.
- See Also:
setRedefinedMethodDeclaration(MethodDeclaration),JavaPackage.getMethodDeclaration_RedefinedMethodDeclaration(),getRedefinitions()
-
setRedefinedMethodDeclaration
Sets the value of the 'Redefined Method Declaration' reference.- Parameters:
value- the new value of the 'Redefined Method Declaration' reference.- See Also:
getRedefinedMethodDeclaration()
-
getRedefinitions
org.eclipse.emf.common.util.EList<MethodDeclaration> getRedefinitions()Returns the value of the 'Redefinitions' reference list. The list contents are of typeMethodDeclaration. It is bidirectional and its opposite is 'Redefined Method Declaration'.- Returns:
- the value of the 'Redefinitions' reference list.
- See Also:
JavaPackage.getMethodDeclaration_Redefinitions(),getRedefinedMethodDeclaration()
-