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 java.util.List<Block> |
initializers |
protected java.lang.Boolean |
isFinal |
protected java.lang.Boolean |
isStatic |
protected java.lang.Boolean |
isTransient |
protected java.lang.Boolean |
isVolatile |
protected JavaVisibilityEnum |
javaVisibility |
eClassifierETypes, eType, lowerBound, ordered, unique, upperBound
name
eAnnotations
Constructor and Description |
---|
Field() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Block> |
getInitializers()
Gets the value of the initializers property.
|
JavaVisibilityEnum |
getJavaVisibility()
Gets the value of the javaVisibility property.
|
java.lang.Boolean |
isIsFinal()
Gets the value of the isFinal property.
|
java.lang.Boolean |
isIsStatic()
Gets the value of the isStatic property.
|
java.lang.Boolean |
isIsTransient()
Gets the value of the isTransient property.
|
java.lang.Boolean |
isIsVolatile()
Gets the value of the isVolatile property.
|
void |
setIsFinal(java.lang.Boolean value)
Sets the value of the isFinal property.
|
void |
setIsStatic(java.lang.Boolean value)
Sets the value of the isStatic property.
|
void |
setIsTransient(java.lang.Boolean value)
Sets the value of the isTransient property.
|
void |
setIsVolatile(java.lang.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, setUpperBound
getName, setName
getEAnnotations
protected java.util.List<Block> initializers
protected java.lang.Boolean isFinal
protected JavaVisibilityEnum javaVisibility
protected java.lang.Boolean isStatic
protected java.lang.Boolean isTransient
protected java.lang.Boolean isVolatile
public java.util.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
Block
public java.lang.Boolean isIsFinal()
Boolean
public void setIsFinal(java.lang.Boolean value)
value
- allowed object is Boolean
public JavaVisibilityEnum getJavaVisibility()
JavaVisibilityEnum
public void setJavaVisibility(JavaVisibilityEnum value)
value
- allowed object is JavaVisibilityEnum
public java.lang.Boolean isIsStatic()
Boolean
public void setIsStatic(java.lang.Boolean value)
value
- allowed object is Boolean
public java.lang.Boolean isIsTransient()
Boolean
public void setIsTransient(java.lang.Boolean value)
value
- allowed object is Boolean
public java.lang.Boolean isIsVolatile()
Boolean
public void setIsVolatile(java.lang.Boolean value)
value
- allowed object is Boolean