public class CGBooleanImpl extends CGConstantImpl implements CGBoolean
The following features are implemented:
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(CGModelVisitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
|
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.
|
boolean |
isBooleanValue() |
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 |
isFalse()
Return true if this value is false.
|
boolean |
isInlined()
Return true if this value is inlined and so has no local or global declaration.
|
boolean |
isTrue()
Return true if this value is true.
|
void |
setBooleanValue(boolean newBooleanValue) |
String |
toString() |
getInvalidValue, isBoxed, isCommonable, isConstant, isEcore, isGlobal, isNonInvalid, isNonNull, isNull, isUnboxed
eInverseRemove, getDependsOn, getEcoreClassifier, getNamedValue, getOwns, getPlace, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isCaught, isContext, isEquivalentTo, isInvalid, isSettable, isUncommonable, rewriteAs, setCaught, setValueName
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
getAst, getName, setAst, setName
eBasicSetContainer, getChildren, getParent
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependsOn, getEcoreClassifier, getInvalidValue, getNamedValue, getOwns, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isBoxed, isCaught, isCommonable, isConstant, isEcore, isEquivalentTo, isGlobal, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isUnboxed, isUncommonable, setCaught, setValueName
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
getAst, getName, setAst, setName
public boolean isBooleanValue()
isBooleanValue
in interface CGBoolean
CGBoolean.setBooleanValue(boolean)
,
CGModelPackage.getCGBoolean_BooleanValue()
public void setBooleanValue(boolean newBooleanValue)
setBooleanValue
in interface CGBoolean
newBooleanValue
- the new value of the 'Boolean Value' attribute.CGBoolean.isBooleanValue()
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 <R> R accept(CGModelVisitor<R> visitor)
accept
in interface CGElement
accept
in class CGElementImpl
public Object getConstantValue()
getConstantValue
in interface CGConstant
public Boolean isEquivalentToInternal(CGValuedElement thatValue)
isEquivalentToInternal
in interface CGValuedElement
public boolean isFalse()
isFalse
in interface CGValuedElement
isFalse
in class CGConstantImpl
public boolean isInlined()
isInlined
in interface CGValuedElement
isInlined
in class CGConstantImpl
public boolean isTrue()
isTrue
in interface CGValuedElement
isTrue
in class CGConstantImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.