Package org.eclipse.gmt.modisco.java
Interface SingleVariableDeclaration
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject,Iterable<fr.inria.atlanmod.neoemf.core.PersistentEObject>,NamedElement,org.eclipse.emf.common.notify.Notifier,fr.inria.atlanmod.neoemf.core.PersistentEObject,fr.inria.atlanmod.neoemf.data.store.Storable,VariableDeclaration
- All Known Subinterfaces:
UnresolvedSingleVariableDeclaration
- All Known Implementing Classes:
SingleVariableDeclarationImpl,UnresolvedSingleVariableDeclarationImpl
public interface SingleVariableDeclaration extends VariableDeclaration
A representation of the model object 'Single Variable Declaration'.
The following features are supported:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore -
Field Summary
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Method Summary
Modifier and Type Method Description org.eclipse.emf.common.util.EList<Annotation>getAnnotations()Returns the value of the 'Annotations' containment reference list.CatchClausegetCatchClause()Returns the value of the 'Catch Clause' container reference.EnhancedForStatementgetEnhancedForStatement()Returns the value of the 'Enhanced For Statement' container reference.AbstractMethodDeclarationgetMethodDeclaration()Returns the value of the 'Method Declaration' container reference.ModifiergetModifier()Returns the value of the 'Modifier' containment reference.TypeAccessgetType()Returns the value of the 'Type' containment reference.booleanisVarargs()Returns the value of the 'Varargs' attribute.voidsetCatchClause(CatchClause value)Sets the value of the 'Catch Clause' container reference.voidsetEnhancedForStatement(EnhancedForStatement value)Sets the value of the 'Enhanced For Statement' container reference.voidsetMethodDeclaration(AbstractMethodDeclaration value)Sets the value of the 'Method Declaration' container reference.voidsetModifier(Modifier value)Sets the value of the 'Modifier' containment reference.voidsetType(TypeAccess value)Sets the value of the 'Type' containment reference.voidsetVarargs(boolean value)Sets the value of the 'Varargs' 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.ecore.InternalEObject
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainerFeatureID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetClass, eSetProxyURI, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegmentMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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, eSetDeliverMethods inherited from interface fr.inria.atlanmod.neoemf.core.PersistentEObject
eInternalContainer, id, id, iterator, resource, resourceMethods inherited from interface fr.inria.atlanmod.neoemf.data.store.Storable
eStoreMethods inherited from interface org.eclipse.gmt.modisco.java.VariableDeclaration
getExtraArrayDimensions, getInitializer, getUsageInVariableAccess, setExtraArrayDimensions, setInitializer
-
Method Details
-
getModifier
Modifier getModifier()Returns the value of the 'Modifier' containment reference. It is bidirectional and its opposite is 'Single Variable Declaration'.- Returns:
- the value of the 'Modifier' containment reference.
- See Also:
setModifier(Modifier),JavaPackage.getSingleVariableDeclaration_Modifier(),Modifier.getSingleVariableDeclaration()
-
setModifier
Sets the value of the 'Modifier' containment reference.- Parameters:
value- the new value of the 'Modifier' containment reference.- See Also:
getModifier()
-
isVarargs
boolean isVarargs()Returns the value of the 'Varargs' attribute.- Returns:
- the value of the 'Varargs' attribute.
- See Also:
setVarargs(boolean),JavaPackage.getSingleVariableDeclaration_Varargs()
-
setVarargs
void setVarargs(boolean value)Sets the value of the 'Varargs' attribute.- Parameters:
value- the new value of the 'Varargs' attribute.- See Also:
isVarargs()
-
getType
TypeAccess getType()Returns the value of the 'Type' containment reference.- Returns:
- the value of the 'Type' containment reference.
- See Also:
setType(TypeAccess),JavaPackage.getSingleVariableDeclaration_Type()
-
setType
Sets the value of the 'Type' containment reference.- Parameters:
value- the new value of the 'Type' containment reference.- See Also:
getType()
-
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.getSingleVariableDeclaration_Annotations()
-
getMethodDeclaration
AbstractMethodDeclaration getMethodDeclaration()Returns the value of the 'Method Declaration' container reference. It is bidirectional and its opposite is 'Parameters'.- Returns:
- the value of the 'Method Declaration' container reference.
- See Also:
setMethodDeclaration(AbstractMethodDeclaration),JavaPackage.getSingleVariableDeclaration_MethodDeclaration(),AbstractMethodDeclaration.getParameters()
-
setMethodDeclaration
Sets the value of the 'Method Declaration' container reference.- Parameters:
value- the new value of the 'Method Declaration' container reference.- See Also:
getMethodDeclaration()
-
getCatchClause
CatchClause getCatchClause()Returns the value of the 'Catch Clause' container reference. It is bidirectional and its opposite is 'Exception'.- Returns:
- the value of the 'Catch Clause' container reference.
- See Also:
setCatchClause(CatchClause),JavaPackage.getSingleVariableDeclaration_CatchClause(),CatchClause.getException()
-
setCatchClause
Sets the value of the 'Catch Clause' container reference.- Parameters:
value- the new value of the 'Catch Clause' container reference.- See Also:
getCatchClause()
-
getEnhancedForStatement
EnhancedForStatement getEnhancedForStatement()Returns the value of the 'Enhanced For Statement' container reference. It is bidirectional and its opposite is 'Parameter'.- Returns:
- the value of the 'Enhanced For Statement' container reference.
- See Also:
setEnhancedForStatement(EnhancedForStatement),JavaPackage.getSingleVariableDeclaration_EnhancedForStatement(),EnhancedForStatement.getParameter()
-
setEnhancedForStatement
Sets the value of the 'Enhanced For Statement' container reference.- Parameters:
value- the new value of the 'Enhanced For Statement' container reference.- See Also:
getEnhancedForStatement()
-