Package org.eclipse.gmt.modisco.java
Interface NamedElement
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
AbstractMethodDeclaration,AbstractTypeDeclaration,AnnotationMemberValuePair,AnnotationTypeDeclaration,AnnotationTypeMemberDeclaration,Archive,ArrayType,BodyDeclaration,ClassDeclaration,ClassFile,CompilationUnit,ConstructorDeclaration,EnumConstantDeclaration,EnumDeclaration,FieldDeclaration,Initializer,InterfaceDeclaration,LabeledStatement,MethodDeclaration,Package,ParameterizedType,PrimitiveType,PrimitiveTypeBoolean,PrimitiveTypeByte,PrimitiveTypeChar,PrimitiveTypeDouble,PrimitiveTypeFloat,PrimitiveTypeInt,PrimitiveTypeLong,PrimitiveTypeShort,PrimitiveTypeVoid,SingleVariableDeclaration,Type,TypeDeclaration,TypeParameter,UnresolvedAnnotationDeclaration,UnresolvedAnnotationTypeMemberDeclaration,UnresolvedClassDeclaration,UnresolvedEnumDeclaration,UnresolvedInterfaceDeclaration,UnresolvedItem,UnresolvedLabeledStatement,UnresolvedMethodDeclaration,UnresolvedSingleVariableDeclaration,UnresolvedType,UnresolvedTypeDeclaration,UnresolvedVariableDeclarationFragment,VariableDeclaration,VariableDeclarationFragment,WildCardType
- All Known Implementing Classes:
AbstractMethodDeclarationImpl,AbstractTypeDeclarationImpl,AnnotationMemberValuePairImpl,AnnotationTypeDeclarationImpl,AnnotationTypeMemberDeclarationImpl,ArchiveImpl,ArrayTypeImpl,BodyDeclarationImpl,ClassDeclarationImpl,ClassFileImpl,CompilationUnitImpl,ConstructorDeclarationImpl,EnumConstantDeclarationImpl,EnumDeclarationImpl,FieldDeclarationImpl,InitializerImpl,InterfaceDeclarationImpl,LabeledStatementImpl,MethodDeclarationImpl,NamedElementImpl,PackageImpl,ParameterizedTypeImpl,PrimitiveTypeBooleanImpl,PrimitiveTypeByteImpl,PrimitiveTypeCharImpl,PrimitiveTypeDoubleImpl,PrimitiveTypeFloatImpl,PrimitiveTypeImpl,PrimitiveTypeIntImpl,PrimitiveTypeLongImpl,PrimitiveTypeShortImpl,PrimitiveTypeVoidImpl,SingleVariableDeclarationImpl,TypeDeclarationImpl,TypeImpl,TypeParameterImpl,UnresolvedAnnotationDeclarationImpl,UnresolvedAnnotationTypeMemberDeclarationImpl,UnresolvedClassDeclarationImpl,UnresolvedEnumDeclarationImpl,UnresolvedInterfaceDeclarationImpl,UnresolvedItemImpl,UnresolvedLabeledStatementImpl,UnresolvedMethodDeclarationImpl,UnresolvedSingleVariableDeclarationImpl,UnresolvedTypeDeclarationImpl,UnresolvedTypeImpl,UnresolvedVariableDeclarationFragmentImpl,VariableDeclarationFragmentImpl,VariableDeclarationImpl,WildCardTypeImpl
public interface NamedElement extends ASTNode
A representation of the model object 'Named Element'.
The following features are supported:
- See Also:
JavaPackage.getNamedElement()
-
Method Summary
Modifier and Type Method Description StringgetName()Returns the value of the 'Name' attribute.org.eclipse.emf.common.util.EList<ImportDeclaration>getUsagesInImports()Returns the value of the 'Usages In Imports' reference list.booleanisProxy()Returns the value of the 'Proxy' attribute.voidsetName(String value)Sets the value of the 'Name' attribute.voidsetProxy(boolean value)Sets the value of the 'Proxy' attribute.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.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getName
String getName()Returns the value of the 'Name' attribute.- Returns:
- the value of the 'Name' attribute.
- See Also:
setName(String),JavaPackage.getNamedElement_Name()
-
setName
Sets the value of the 'Name' attribute.- Parameters:
value- the new value of the 'Name' attribute.- See Also:
getName()
-
isProxy
boolean isProxy()Returns the value of the 'Proxy' attribute.- Returns:
- the value of the 'Proxy' attribute.
- See Also:
setProxy(boolean),JavaPackage.getNamedElement_Proxy()
-
setProxy
void setProxy(boolean value)Sets the value of the 'Proxy' attribute.- Parameters:
value- the new value of the 'Proxy' attribute.- See Also:
isProxy()
-
getUsagesInImports
org.eclipse.emf.common.util.EList<ImportDeclaration> getUsagesInImports()Returns the value of the 'Usages In Imports' reference list. The list contents are of typeImportDeclaration. It is bidirectional and its opposite is 'Imported Element'.- Returns:
- the value of the 'Usages In Imports' reference list.
- See Also:
JavaPackage.getNamedElement_UsagesInImports(),ImportDeclaration.getImportedElement()
-