public abstract class CGNumberImpl extends CGConstantImpl implements CGNumber
The following features are implemented:
Modifier and Type | Method and Description |
---|---|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
Object newValue) |
void |
eUnset(int featureID) |
Object |
getConstantValue()
Return the constant (boxed) value of this element.
|
Number |
getNumericValue() |
boolean |
isCommonable()
Return true if this value can be shared as part of a Common Subexpression.
|
boolean |
isEcore()
Return true if this value is an Ecore value.
|
Boolean |
isEquivalentToInternal(CGValuedElement thatValue)
Provided that thatValue does not delegate its equivalence computation, return true/false if this value can be determined to have deep value equivalence/inequivalence to thatValue, null if no determination can be made.
|
boolean |
isUnboxed()
Return true if this value is an unboxed value.
|
boolean |
isUncommonable()
Return true if this value does not have to be shared as part of a Common Subexpression.
|
void |
setNumericValue(Number newNumericValue) |
String |
toString() |
getInvalidValue, isBoxed, isConstant, isFalse, isGlobal, isInlined, isNonInvalid, isNonNull, isNull, isTrue
eInverseRemove, getDependsOn, getEcoreClassifier, getNamedValue, getOwns, getPlace, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isCaught, isContext, isEquivalentTo, isInvalid, isSettable, rewriteAs, setCaught, setValueName
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
getAst, getName, setAst, setName
accept, eBasicSetContainer, getChildren, getParent
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependsOn, getEcoreClassifier, getInvalidValue, getNamedValue, getOwns, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isBoxed, isCaught, isConstant, isEquivalentTo, isFalse, isGlobal, isInlined, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, setCaught, setValueName
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
getAst, getName, setAst, setName
public Number getNumericValue()
getNumericValue
in interface CGNumber
CGNumber.setNumericValue(Number)
,
CGModelPackage.getCGNumber_NumericValue()
public void setNumericValue(Number newNumericValue)
setNumericValue
in interface CGNumber
newNumericValue
- the new value of the 'Numeric Value' attribute.CGNumber.getNumericValue()
public String toString()
toString
in class CGTypedElementImpl
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in class CGValuedElementImpl
public void eSet(int featureID, Object newValue)
eSet
in class CGValuedElementImpl
public void eUnset(int featureID)
eUnset
in class CGValuedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in class CGValuedElementImpl
public Object getConstantValue()
getConstantValue
in interface CGConstant
public boolean isCommonable()
isCommonable
in interface CGValuedElement
isCommonable
in class CGConstantImpl
public boolean isEcore()
isEcore
in interface CGValuedElement
isEcore
in class CGConstantImpl
public Boolean isEquivalentToInternal(CGValuedElement thatValue)
isEquivalentToInternal
in interface CGValuedElement
public boolean isUnboxed()
isUnboxed
in interface CGValuedElement
isUnboxed
in class CGConstantImpl
public boolean isUncommonable()
isUncommonable
in interface CGValuedElement
isUncommonable
in class CGValuedElementImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.