Package org.eclipse.gmt.modisco.java
Interface BodyDeclaration
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,NamedElement,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
AbstractMethodDeclaration,AbstractTypeDeclaration,AnnotationTypeDeclaration,AnnotationTypeMemberDeclaration,ClassDeclaration,ConstructorDeclaration,EnumConstantDeclaration,EnumDeclaration,FieldDeclaration,Initializer,InterfaceDeclaration,MethodDeclaration,TypeDeclaration,UnresolvedAnnotationDeclaration,UnresolvedAnnotationTypeMemberDeclaration,UnresolvedClassDeclaration,UnresolvedEnumDeclaration,UnresolvedInterfaceDeclaration,UnresolvedMethodDeclaration,UnresolvedTypeDeclaration
- All Known Implementing Classes:
AbstractMethodDeclarationImpl,AbstractTypeDeclarationImpl,AnnotationTypeDeclarationImpl,AnnotationTypeMemberDeclarationImpl,BodyDeclarationImpl,ClassDeclarationImpl,ConstructorDeclarationImpl,EnumConstantDeclarationImpl,EnumDeclarationImpl,FieldDeclarationImpl,InitializerImpl,InterfaceDeclarationImpl,MethodDeclarationImpl,TypeDeclarationImpl,UnresolvedAnnotationDeclarationImpl,UnresolvedAnnotationTypeMemberDeclarationImpl,UnresolvedClassDeclarationImpl,UnresolvedEnumDeclarationImpl,UnresolvedInterfaceDeclarationImpl,UnresolvedMethodDeclarationImpl,UnresolvedTypeDeclarationImpl
public interface BodyDeclaration extends NamedElement
A representation of the model object 'Body Declaration'.
The following features are supported:
- See Also:
JavaPackage.getBodyDeclaration()
-
Method Summary
Modifier and Type Method Description AbstractTypeDeclarationgetAbstractTypeDeclaration()Returns the value of the 'Abstract Type Declaration' container reference.org.eclipse.emf.common.util.EList<Annotation>getAnnotations()Returns the value of the 'Annotations' containment reference list.AnonymousClassDeclarationgetAnonymousClassDeclarationOwner()Returns the value of the 'Anonymous Class Declaration Owner' container reference.ModifiergetModifier()Returns the value of the 'Modifier' containment reference.voidsetAbstractTypeDeclaration(AbstractTypeDeclaration value)Sets the value of the 'Abstract Type Declaration' container reference.voidsetAnonymousClassDeclarationOwner(AnonymousClassDeclaration value)Sets the value of the 'Anonymous Class Declaration Owner' container reference.voidsetModifier(Modifier value)Sets the value of the 'Modifier' containment reference.Methods inherited from interface org.eclipse.gmt.modisco.java.ASTNode
getComments, getOriginalClassFile, getOriginalCompilationUnit, setOriginalClassFile, setOriginalCompilationUnitMethods 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
-
getAbstractTypeDeclaration
AbstractTypeDeclaration getAbstractTypeDeclaration()Returns the value of the 'Abstract Type Declaration' container reference. It is bidirectional and its opposite is 'Body Declarations'.- Returns:
- the value of the 'Abstract Type Declaration' container reference.
- See Also:
setAbstractTypeDeclaration(AbstractTypeDeclaration),JavaPackage.getBodyDeclaration_AbstractTypeDeclaration(),AbstractTypeDeclaration.getBodyDeclarations()
-
setAbstractTypeDeclaration
Sets the value of the 'Abstract Type Declaration' container reference.- Parameters:
value- the new value of the 'Abstract Type Declaration' container reference.- See Also:
getAbstractTypeDeclaration()
-
getAnnotations
org.eclipse.emf.common.util.EList<Annotation> getAnnotations()Returns the value of the 'Annotations' containment reference list. The list contents are of typeAnnotation.- Returns:
- the value of the 'Annotations' containment reference list.
- See Also:
JavaPackage.getBodyDeclaration_Annotations()
-
getAnonymousClassDeclarationOwner
AnonymousClassDeclaration getAnonymousClassDeclarationOwner()Returns the value of the 'Anonymous Class Declaration Owner' container reference. It is bidirectional and its opposite is 'Body Declarations'.- Returns:
- the value of the 'Anonymous Class Declaration Owner' container reference.
- See Also:
setAnonymousClassDeclarationOwner(AnonymousClassDeclaration),JavaPackage.getBodyDeclaration_AnonymousClassDeclarationOwner(),AnonymousClassDeclaration.getBodyDeclarations()
-
setAnonymousClassDeclarationOwner
Sets the value of the 'Anonymous Class Declaration Owner' container reference.- Parameters:
value- the new value of the 'Anonymous Class Declaration Owner' container reference.- See Also:
getAnonymousClassDeclarationOwner()
-
getModifier
Modifier getModifier()Returns the value of the 'Modifier' containment reference. It is bidirectional and its opposite is 'Body Declaration'.- Returns:
- the value of the 'Modifier' containment reference.
- See Also:
setModifier(Modifier),JavaPackage.getBodyDeclaration_Modifier(),Modifier.getBodyDeclaration()
-
setModifier
Sets the value of the 'Modifier' containment reference.- Parameters:
value- the new value of the 'Modifier' containment reference.- See Also:
getModifier()
-