public class Field extends ETypedElement
<complexType name="Field">
<complexContent>
<extension base="{http://www.eclipse.org/emf/2002/Ecore}ETypedElement">
<choice maxOccurs="unbounded" minOccurs="0">
<element name="initializer" type="{java.xmi}Block"/>
</choice>
<attribute name="final" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="javaVisibility" type="{java.xmi}JavaVisibilityKind" />
<attribute name="static" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="transient" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="volatile" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Block> |
initializers |
protected Boolean |
isFinal |
protected Boolean |
isStatic |
protected Boolean |
isTransient |
protected Boolean |
isVolatile |
protected JavaVisibilityEnum |
javaVisibility |
eClassifierETypes, eType, lowerBound, ordered, unique, upperBoundnameeAnnotations| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
List<Block> |
getInitializers()
Gets the value of the initializers property.
|
JavaVisibilityEnum |
getJavaVisibility()
Gets the value of the javaVisibility property.
|
Boolean |
isIsFinal()
Gets the value of the isFinal property.
|
Boolean |
isIsStatic()
Gets the value of the isStatic property.
|
Boolean |
isIsTransient()
Gets the value of the isTransient property.
|
Boolean |
isIsVolatile()
Gets the value of the isVolatile property.
|
void |
setIsFinal(Boolean value)
Sets the value of the isFinal property.
|
void |
setIsStatic(Boolean value)
Sets the value of the isStatic property.
|
void |
setIsTransient(Boolean value)
Sets the value of the isTransient property.
|
void |
setIsVolatile(Boolean value)
Sets the value of the isVolatile property.
|
void |
setJavaVisibility(JavaVisibilityEnum value)
Sets the value of the javaVisibility property.
|
getEClassifierETypes, getEType, getLowerBound, getUpperBound, isOrdered, isUnique, setEType, setLowerBound, setOrdered, setUnique, setUpperBoundgetName, setNamegetEAnnotationsprotected Boolean isFinal
protected JavaVisibilityEnum javaVisibility
protected Boolean isStatic
protected Boolean isTransient
protected Boolean isVolatile
public List<Block> getInitializers()
set method for the initializers property.
For example, to add a new item, do as follows:
getInitializers().add(newItem);Objects of the following type(s) are allowed in the list
Blockpublic Boolean isIsFinal()
Booleanpublic void setIsFinal(Boolean value)
value - allowed object is Booleanpublic JavaVisibilityEnum getJavaVisibility()
JavaVisibilityEnumpublic void setJavaVisibility(JavaVisibilityEnum value)
value - allowed object is JavaVisibilityEnumpublic Boolean isIsStatic()
Booleanpublic void setIsStatic(Boolean value)
value - allowed object is Booleanpublic Boolean isIsTransient()
Booleanpublic void setIsTransient(Boolean value)
value - allowed object is Booleanpublic Boolean isIsVolatile()
BooleanCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.