org.eclipse.gmt.modisco.java
Interface SingleVariableDeclaration

All Superinterfaces:
ASTNode, NamedElement, VariableDeclaration
All Known Subinterfaces:
UnresolvedSingleVariableDeclaration

public interface SingleVariableDeclaration
extends VariableDeclaration

A representation of the model object 'Single Variable Declaration'.

The following features are supported:

See Also:
JavaPackage.getSingleVariableDeclaration()
Generated:
Model:

Method Summary
  getAnnotations()
          Returns the value of the 'Annotations' containment reference list.
 CatchClause getCatchClause()
          Returns the value of the 'Catch Clause' container reference.
 EnhancedForStatement getEnhancedForStatement()
          Returns the value of the 'Enhanced For Statement' container reference.
 AbstractMethodDeclaration getMethodDeclaration()
          Returns the value of the 'Method Declaration' container reference.
 Modifier getModifier()
          Returns the value of the 'Modifier' containment reference.
 TypeAccess getType()
          Returns the value of the 'Type' containment reference.
 boolean isVarargs()
          Returns the value of the 'Varargs' attribute.
 void setCatchClause(CatchClause value)
          Sets the value of the 'Catch Clause' container reference.
 void setEnhancedForStatement(EnhancedForStatement value)
          Sets the value of the 'Enhanced For Statement' container reference.
 void setMethodDeclaration(AbstractMethodDeclaration value)
          Sets the value of the 'Method Declaration' container reference.
 void setModifier(Modifier value)
          Sets the value of the 'Modifier' containment reference.
 void setType(TypeAccess value)
          Sets the value of the 'Type' containment reference.
 void setVarargs(boolean value)
          Sets the value of the 'Varargs' attribute.
 
Methods inherited from interface org.eclipse.gmt.modisco.java.VariableDeclaration
getExtraArrayDimensions, getInitializer, getUsageInVariableAccess, setExtraArrayDimensions, setInitializer
 
Methods inherited from interface org.eclipse.gmt.modisco.java.NamedElement
getName, getUsagesInImports, isProxy, setName, setProxy
 
Methods inherited from interface org.eclipse.gmt.modisco.java.ASTNode
getComments, getOriginalClassFile, getOriginalCompilationUnit, setOriginalClassFile, setOriginalCompilationUnit
 

Method Detail

getModifier

Modifier getModifier()
Returns the value of the 'Modifier' containment reference. It is bidirectional and its opposite is 'Single Variable Declaration'.

If the meaning of the 'Modifier' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Modifier' containment reference.
See Also:
setModifier(Modifier), JavaPackage.getSingleVariableDeclaration_Modifier(), Modifier.getSingleVariableDeclaration()
Generated:
Model:
opposite="singleVariableDeclaration" containment="true" ordered="false"

setModifier

void setModifier(Modifier value)
Sets the value of the 'Modifier' containment reference.

Parameters:
value - the new value of the 'Modifier' containment reference.
See Also:
getModifier()
Generated:

isVarargs

boolean isVarargs()
Returns the value of the 'Varargs' attribute.

If the meaning of the 'Varargs' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Varargs' attribute.
See Also:
setVarargs(boolean), JavaPackage.getSingleVariableDeclaration_Varargs()
Generated:
Model:
unique="false" required="true" ordered="false"

setVarargs

void setVarargs(boolean value)
Sets the value of the 'Varargs' attribute.

Parameters:
value - the new value of the 'Varargs' attribute.
See Also:
isVarargs()
Generated:

getType

TypeAccess getType()
Returns the value of the 'Type' containment reference.

If the meaning of the 'Type' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Type' containment reference.
See Also:
setType(TypeAccess), JavaPackage.getSingleVariableDeclaration_Type()
Generated:
Model:
containment="true" required="true" ordered="false"

setType

void setType(TypeAccess value)
Sets the value of the 'Type' containment reference.

Parameters:
value - the new value of the 'Type' containment reference.
See Also:
getType()
Generated:

getAnnotations

 getAnnotations()
Returns the value of the 'Annotations' containment reference list. The list contents are of type Annotation.

If the meaning of the 'Annotations' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Annotations' containment reference list.
See Also:
JavaPackage.getSingleVariableDeclaration_Annotations()
Generated:
Model:
containment="true"

getMethodDeclaration

AbstractMethodDeclaration getMethodDeclaration()
Returns the value of the 'Method Declaration' container reference. It is bidirectional and its opposite is 'Parameters'.

If the meaning of the 'Method Declaration' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Method Declaration' container reference.
See Also:
setMethodDeclaration(AbstractMethodDeclaration), JavaPackage.getSingleVariableDeclaration_MethodDeclaration(), AbstractMethodDeclaration.getParameters()
Generated:
Model:
opposite="parameters" transient="false" ordered="false"

setMethodDeclaration

void setMethodDeclaration(AbstractMethodDeclaration value)
Sets the value of the 'Method Declaration' container reference.

Parameters:
value - the new value of the 'Method Declaration' container reference.
See Also:
getMethodDeclaration()
Generated:

getCatchClause

CatchClause getCatchClause()
Returns the value of the 'Catch Clause' container reference. It is bidirectional and its opposite is 'Exception'.

If the meaning of the 'Catch Clause' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Catch Clause' container reference.
See Also:
setCatchClause(CatchClause), JavaPackage.getSingleVariableDeclaration_CatchClause(), CatchClause.getException()
Generated:
Model:
opposite="exception" transient="false" ordered="false"

setCatchClause

void setCatchClause(CatchClause value)
Sets the value of the 'Catch Clause' container reference.

Parameters:
value - the new value of the 'Catch Clause' container reference.
See Also:
getCatchClause()
Generated:

getEnhancedForStatement

EnhancedForStatement getEnhancedForStatement()
Returns the value of the 'Enhanced For Statement' container reference. It is bidirectional and its opposite is 'Parameter'.

If the meaning of the 'Enhanced For Statement' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Enhanced For Statement' container reference.
See Also:
setEnhancedForStatement(EnhancedForStatement), JavaPackage.getSingleVariableDeclaration_EnhancedForStatement(), EnhancedForStatement.getParameter()
Generated:
Model:
opposite="parameter" transient="false" ordered="false"

setEnhancedForStatement

void setEnhancedForStatement(EnhancedForStatement value)
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()
Generated: