Package org.eclipse.gmt.modisco.java
Interface SingleVariableDeclaration
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,NamedElement,org.eclipse.emf.common.notify.Notifier,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:
-
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.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 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()
-