Package org.eclipse.gmt.modisco.java
Interface AbstractMethodDeclaration
- All Superinterfaces:
ASTNode,BodyDeclaration,org.eclipse.emf.ecore.EObject,NamedElement,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
ConstructorDeclaration,MethodDeclaration,UnresolvedMethodDeclaration
- All Known Implementing Classes:
AbstractMethodDeclarationImpl,ConstructorDeclarationImpl,MethodDeclarationImpl,UnresolvedMethodDeclarationImpl
public interface AbstractMethodDeclaration extends BodyDeclaration
A representation of the model object 'Abstract Method Declaration'.
The following features are supported:
-
Method Summary
Modifier and Type Method Description BlockgetBody()Returns the value of the 'Body' containment reference.org.eclipse.emf.common.util.EList<SingleVariableDeclaration>getParameters()Returns the value of the 'Parameters' containment reference list.org.eclipse.emf.common.util.EList<TypeAccess>getThrownExceptions()Returns the value of the 'Thrown Exceptions' containment reference list.org.eclipse.emf.common.util.EList<TypeParameter>getTypeParameters()Returns the value of the 'Type Parameters' containment reference list.org.eclipse.emf.common.util.EList<AbstractMethodInvocation>getUsages()Returns the value of the 'Usages' reference list.org.eclipse.emf.common.util.EList<MethodRef>getUsagesInDocComments()Returns the value of the 'Usages In Doc Comments' reference list.voidsetBody(Block value)Sets the value of the 'Body' containment reference.Methods 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
-
getBody
Block getBody()Returns the value of the 'Body' containment reference.- Returns:
- the value of the 'Body' containment reference.
- See Also:
setBody(Block),JavaPackage.getAbstractMethodDeclaration_Body()
-
setBody
Sets the value of the 'Body' containment reference.- Parameters:
value- the new value of the 'Body' containment reference.- See Also:
getBody()
-
getParameters
org.eclipse.emf.common.util.EList<SingleVariableDeclaration> getParameters()Returns the value of the 'Parameters' containment reference list. The list contents are of typeSingleVariableDeclaration. It is bidirectional and its opposite is 'Method Declaration'.- Returns:
- the value of the 'Parameters' containment reference list.
- See Also:
JavaPackage.getAbstractMethodDeclaration_Parameters(),SingleVariableDeclaration.getMethodDeclaration()
-
getThrownExceptions
org.eclipse.emf.common.util.EList<TypeAccess> getThrownExceptions()Returns the value of the 'Thrown Exceptions' containment reference list. The list contents are of typeTypeAccess.- Returns:
- the value of the 'Thrown Exceptions' containment reference list.
- See Also:
JavaPackage.getAbstractMethodDeclaration_ThrownExceptions()
-
getTypeParameters
org.eclipse.emf.common.util.EList<TypeParameter> getTypeParameters()Returns the value of the 'Type Parameters' containment reference list. The list contents are of typeTypeParameter.- Returns:
- the value of the 'Type Parameters' containment reference list.
- See Also:
JavaPackage.getAbstractMethodDeclaration_TypeParameters()
-
getUsagesInDocComments
org.eclipse.emf.common.util.EList<MethodRef> getUsagesInDocComments()Returns the value of the 'Usages In Doc Comments' reference list. The list contents are of typeMethodRef. It is bidirectional and its opposite is 'Method'.- Returns:
- the value of the 'Usages In Doc Comments' reference list.
- See Also:
JavaPackage.getAbstractMethodDeclaration_UsagesInDocComments(),MethodRef.getMethod()
-
getUsages
org.eclipse.emf.common.util.EList<AbstractMethodInvocation> getUsages()Returns the value of the 'Usages' reference list. The list contents are of typeAbstractMethodInvocation. It is bidirectional and its opposite is 'Method'.- Returns:
- the value of the 'Usages' reference list.
- See Also:
JavaPackage.getAbstractMethodDeclaration_Usages(),AbstractMethodInvocation.getMethod()
-