public interface JvmField extends JvmFeature
The following features are supported:
TypesPackage.getJvmField()
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstantValue()
Returns the value of the 'Constant Value' attribute
|
boolean |
getConstantValueAsBoolean() |
byte |
getConstantValueAsByte() |
char |
getConstantValueAsChar() |
double |
getConstantValueAsDouble() |
float |
getConstantValueAsFloat() |
int |
getConstantValueAsInt() |
long |
getConstantValueAsLong() |
short |
getConstantValueAsShort() |
java.lang.String |
getConstantValueAsString() |
JvmTypeReference |
getType()
Returns the value of the 'Type' containment reference
|
boolean |
isConstant()
Returns the value of the 'Constant' attribute
|
boolean |
isFinal()
Returns the value of the 'Final' attribute
|
boolean |
isSetConstant()
Returns whether the value of the '
Constant ' attribute is set |
boolean |
isStatic()
Returns the value of the 'Static' attribute
|
boolean |
isTransient()
Returns the value of the 'Transient' attribute
|
boolean |
isVolatile()
Returns the value of the 'Volatile' attribute
|
void |
setConstant(boolean value)
Sets the value of the '
Constant ' attribute |
void |
setConstantValue(java.lang.Object value)
Sets the value of the '
Constant Value ' attribute |
void |
setFinal(boolean value)
Sets the value of the '
Final ' attribute |
void |
setStatic(boolean value)
Sets the value of the '
Static ' attribute |
void |
setTransient(boolean value)
Sets the value of the '
Transient ' attribute |
void |
setType(JvmTypeReference value)
Sets the value of the '
Type ' containment reference |
void |
setVolatile(boolean value)
Sets the value of the '
Volatile ' attribute |
void |
unsetConstant()
Unsets the value of the '
Constant ' attribute |
getLocalClasses
getDeclaringType, getIdentifier, getSimpleName, getVisibility, internalSetIdentifier, isDeprecated, isSetDeprecated, setDeclaringType, setDeprecated, setSimpleName, setVisibility, unsetDeprecated
getAnnotations
getQualifiedName, getQualifiedName
boolean isStatic()
If the meaning of the 'Static' attribute isn't clear, there really should be more of a description here...
isStatic
in interface JvmFeature
setStatic(boolean)
,
TypesPackage.getJvmField_Static()
void setStatic(boolean value)
Static
' attribute.
value
- the new value of the 'Static' attribute.isStatic()
boolean isFinal()
If the meaning of the 'Final' attribute isn't clear, there really should be more of a description here...
setFinal(boolean)
,
TypesPackage.getJvmField_Final()
void setFinal(boolean value)
Final
' attribute.
value
- the new value of the 'Final' attribute.isFinal()
JvmTypeReference getType()
If the meaning of the 'Type' containment reference isn't clear, there really should be more of a description here...
setType(JvmTypeReference)
,
TypesPackage.getJvmField_Type()
void setType(JvmTypeReference value)
Type
' containment reference.
value
- the new value of the 'Type' containment reference.getType()
boolean isVolatile()
If the meaning of the 'Volatile' attribute isn't clear, there really should be more of a description here...
setVolatile(boolean)
,
TypesPackage.getJvmField_Volatile()
void setVolatile(boolean value)
Volatile
' attribute.
value
- the new value of the 'Volatile' attribute.isVolatile()
boolean isTransient()
If the meaning of the 'Transient' attribute isn't clear, there really should be more of a description here...
setTransient(boolean)
,
TypesPackage.getJvmField_Transient()
void setTransient(boolean value)
Transient
' attribute.
value
- the new value of the 'Transient' attribute.isTransient()
boolean isConstant()
If the meaning of the 'Constant' attribute isn't clear, there really should be more of a description here...
isSetConstant()
,
unsetConstant()
,
setConstant(boolean)
,
TypesPackage.getJvmField_Constant()
void setConstant(boolean value)
Constant
' attribute.
value
- the new value of the 'Constant' attribute.isSetConstant()
,
unsetConstant()
,
isConstant()
void unsetConstant()
Constant
' attribute.
isSetConstant()
,
isConstant()
,
setConstant(boolean)
boolean isSetConstant()
Constant
' attribute is set.
unsetConstant()
,
isConstant()
,
setConstant(boolean)
java.lang.Object getConstantValue()
If the meaning of the 'Constant Value' attribute isn't clear, there really should be more of a description here...
setConstantValue(Object)
,
TypesPackage.getJvmField_ConstantValue()
void setConstantValue(java.lang.Object value)
Constant Value
' attribute.
value
- the new value of the 'Constant Value' attribute.getConstantValue()
long getConstantValueAsLong()
int getConstantValueAsInt()
short getConstantValueAsShort()
byte getConstantValueAsByte()
double getConstantValueAsDouble()
float getConstantValueAsFloat()
char getConstantValueAsChar()
boolean getConstantValueAsBoolean()
java.lang.String getConstantValueAsString()