Package org.eclipse.gmt.modisco.java
Interface Modifier
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
ModifierImpl
public interface Modifier extends ASTNode
A representation of the model object 'Modifier'.
The following features are supported:
- See Also:
JavaPackage.getModifier()
-
Method Summary
Modifier and Type Method Description BodyDeclarationgetBodyDeclaration()Returns the value of the 'Body Declaration' container reference.InheritanceKindgetInheritance()Returns the value of the 'Inheritance' attribute.SingleVariableDeclarationgetSingleVariableDeclaration()Returns the value of the 'Single Variable Declaration' container reference.VariableDeclarationExpressiongetVariableDeclarationExpression()Returns the value of the 'Variable Declaration Expression' container reference.VariableDeclarationStatementgetVariableDeclarationStatement()Returns the value of the 'Variable Declaration Statement' container reference.VisibilityKindgetVisibility()Returns the value of the 'Visibility' attribute.booleanisNative()Returns the value of the 'Native' attribute.booleanisStatic()Returns the value of the 'Static' attribute.booleanisStrictfp()Returns the value of the 'Strictfp' attribute.booleanisSynchronized()Returns the value of the 'Synchronized' attribute.booleanisTransient()Returns the value of the 'Transient' attribute.booleanisVolatile()Returns the value of the 'Volatile' attribute.voidsetBodyDeclaration(BodyDeclaration value)Sets the value of the 'Body Declaration' container reference.voidsetInheritance(InheritanceKind value)Sets the value of the 'Inheritance' attribute.voidsetNative(boolean value)Sets the value of the 'Native' attribute.voidsetSingleVariableDeclaration(SingleVariableDeclaration value)Sets the value of the 'Single Variable Declaration' container reference.voidsetStatic(boolean value)Sets the value of the 'Static' attribute.voidsetStrictfp(boolean value)Sets the value of the 'Strictfp' attribute.voidsetSynchronized(boolean value)Sets the value of the 'Synchronized' attribute.voidsetTransient(boolean value)Sets the value of the 'Transient' attribute.voidsetVariableDeclarationExpression(VariableDeclarationExpression value)Sets the value of the 'Variable Declaration Expression' container reference.voidsetVariableDeclarationStatement(VariableDeclarationStatement value)Sets the value of the 'Variable Declaration Statement' container reference.voidsetVisibility(VisibilityKind value)Sets the value of the 'Visibility' attribute.voidsetVolatile(boolean value)Sets the value of the 'Volatile' 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
-
getVisibility
VisibilityKind getVisibility()Returns the value of the 'Visibility' attribute. The literals are from the enumerationVisibilityKind.- Returns:
- the value of the 'Visibility' attribute.
- See Also:
VisibilityKind,setVisibility(VisibilityKind),JavaPackage.getModifier_Visibility()
-
setVisibility
Sets the value of the 'Visibility' attribute.- Parameters:
value- the new value of the 'Visibility' attribute.- See Also:
VisibilityKind,getVisibility()
-
getInheritance
InheritanceKind getInheritance()Returns the value of the 'Inheritance' attribute. The literals are from the enumerationInheritanceKind.- Returns:
- the value of the 'Inheritance' attribute.
- See Also:
InheritanceKind,setInheritance(InheritanceKind),JavaPackage.getModifier_Inheritance()
-
setInheritance
Sets the value of the 'Inheritance' attribute.- Parameters:
value- the new value of the 'Inheritance' attribute.- See Also:
InheritanceKind,getInheritance()
-
isStatic
boolean isStatic()Returns the value of the 'Static' attribute.- Returns:
- the value of the 'Static' attribute.
- See Also:
setStatic(boolean),JavaPackage.getModifier_Static()
-
setStatic
void setStatic(boolean value)Sets the value of the 'Static' attribute.- Parameters:
value- the new value of the 'Static' attribute.- See Also:
isStatic()
-
isTransient
boolean isTransient()Returns the value of the 'Transient' attribute.- Returns:
- the value of the 'Transient' attribute.
- See Also:
setTransient(boolean),JavaPackage.getModifier_Transient()
-
setTransient
void setTransient(boolean value)Sets the value of the 'Transient' attribute.- Parameters:
value- the new value of the 'Transient' attribute.- See Also:
isTransient()
-
isVolatile
boolean isVolatile()Returns the value of the 'Volatile' attribute.- Returns:
- the value of the 'Volatile' attribute.
- See Also:
setVolatile(boolean),JavaPackage.getModifier_Volatile()
-
setVolatile
void setVolatile(boolean value)Sets the value of the 'Volatile' attribute.- Parameters:
value- the new value of the 'Volatile' attribute.- See Also:
isVolatile()
-
isNative
boolean isNative()Returns the value of the 'Native' attribute.- Returns:
- the value of the 'Native' attribute.
- See Also:
setNative(boolean),JavaPackage.getModifier_Native()
-
setNative
void setNative(boolean value)Sets the value of the 'Native' attribute.- Parameters:
value- the new value of the 'Native' attribute.- See Also:
isNative()
-
isStrictfp
boolean isStrictfp()Returns the value of the 'Strictfp' attribute.- Returns:
- the value of the 'Strictfp' attribute.
- See Also:
setStrictfp(boolean),JavaPackage.getModifier_Strictfp()
-
setStrictfp
void setStrictfp(boolean value)Sets the value of the 'Strictfp' attribute.- Parameters:
value- the new value of the 'Strictfp' attribute.- See Also:
isStrictfp()
-
isSynchronized
boolean isSynchronized()Returns the value of the 'Synchronized' attribute.- Returns:
- the value of the 'Synchronized' attribute.
- See Also:
setSynchronized(boolean),JavaPackage.getModifier_Synchronized()
-
setSynchronized
void setSynchronized(boolean value)Sets the value of the 'Synchronized' attribute.- Parameters:
value- the new value of the 'Synchronized' attribute.- See Also:
isSynchronized()
-
getBodyDeclaration
BodyDeclaration getBodyDeclaration()Returns the value of the 'Body Declaration' container reference. It is bidirectional and its opposite is 'Modifier'.- Returns:
- the value of the 'Body Declaration' container reference.
- See Also:
setBodyDeclaration(BodyDeclaration),JavaPackage.getModifier_BodyDeclaration(),BodyDeclaration.getModifier()
-
setBodyDeclaration
Sets the value of the 'Body Declaration' container reference.- Parameters:
value- the new value of the 'Body Declaration' container reference.- See Also:
getBodyDeclaration()
-
getSingleVariableDeclaration
SingleVariableDeclaration getSingleVariableDeclaration()Returns the value of the 'Single Variable Declaration' container reference. It is bidirectional and its opposite is 'Modifier'.- Returns:
- the value of the 'Single Variable Declaration' container reference.
- See Also:
setSingleVariableDeclaration(SingleVariableDeclaration),JavaPackage.getModifier_SingleVariableDeclaration(),SingleVariableDeclaration.getModifier()
-
setSingleVariableDeclaration
Sets the value of the 'Single Variable Declaration' container reference.- Parameters:
value- the new value of the 'Single Variable Declaration' container reference.- See Also:
getSingleVariableDeclaration()
-
getVariableDeclarationStatement
VariableDeclarationStatement getVariableDeclarationStatement()Returns the value of the 'Variable Declaration Statement' container reference. It is bidirectional and its opposite is 'Modifier'.- Returns:
- the value of the 'Variable Declaration Statement' container reference.
- See Also:
setVariableDeclarationStatement(VariableDeclarationStatement),JavaPackage.getModifier_VariableDeclarationStatement(),VariableDeclarationStatement.getModifier()
-
setVariableDeclarationStatement
Sets the value of the 'Variable Declaration Statement' container reference.- Parameters:
value- the new value of the 'Variable Declaration Statement' container reference.- See Also:
getVariableDeclarationStatement()
-
getVariableDeclarationExpression
VariableDeclarationExpression getVariableDeclarationExpression()Returns the value of the 'Variable Declaration Expression' container reference. It is bidirectional and its opposite is 'Modifier'.- Returns:
- the value of the 'Variable Declaration Expression' container reference.
- See Also:
setVariableDeclarationExpression(VariableDeclarationExpression),JavaPackage.getModifier_VariableDeclarationExpression(),VariableDeclarationExpression.getModifier()
-
setVariableDeclarationExpression
Sets the value of the 'Variable Declaration Expression' container reference.- Parameters:
value- the new value of the 'Variable Declaration Expression' container reference.- See Also:
getVariableDeclarationExpression()
-