public interface CGValuedElement extends CGTypedElement
The following features are supported:
CGModelPackage.getCGValuedElement()
Modifier and Type | Method and Description |
---|---|
java.util.List<CGValuedElement> |
getDependsOn()
Returns the value of the 'Depends On' reference list.
|
org.eclipse.emf.ecore.EClassifier |
getEcoreClassifier()
Return a non-null EClassifier if this value has a known EClassifier to define its instance class.
|
CGInvalid |
getInvalidValue()
Return a non-null invalid value if this value is invalid.
|
CGValuedElement |
getNamedValue()
Return the CGValuedElement that provides the name of a declaration from which the value of this CGValuedElement may be obtained.
|
java.util.List<CGValuedElement> |
getOwns()
Returns the value of the 'Owns' containment reference list.
|
CGValuedElement |
getReferredValue()
Return the CGValuedElement to which the value of this CGValuedElement delegates.
|
CGValuedElement |
getSourceValue()
Return the CGValuedElement which is the source of the information value of this element.
|
CGValuedElement |
getThisValue()
Return a simpler CGValuedElement that is fully equivalent to this element.
|
CGValuedElement |
getTypedValue()
Return the CGValuedElement that provides the narrowest type declaration from which the type of this CGValuedElement may be obtained.
|
java.lang.String |
getValueName()
Return the declared name value of this element.
|
boolean |
isAssertedNonNull()
Return true if this value is not null, possibly with the aid of an assertion.
|
boolean |
isBoxed()
Return true if this value is a boxed value.
|
boolean |
isCaught()
Returns true if any exception associated with this value has been caught and consequently the value may be an InvalidValueException.
|
boolean |
isCommonable()
Return true if this value can be shared as part of a Common Subexpression.
|
boolean |
isConstant()
Return true if this value is a local constant (dependent of the user type system).
|
boolean |
isEcore()
Return true if this value is an Ecore value.
|
java.lang.Boolean |
isEquivalentTo(CGValuedElement thatValue)
Returns true/false if this value can be determined to have deep value equivalence/inequivalence to thatValue, null if no determination can be made.
|
java.lang.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 |
isGlobal()
Return true if this value is a global constant (independent of the user type system).
|
boolean |
isInlined()
Return true if this value is inlined and so has no local or global declaration.
|
boolean |
isInvalid()
Return true if this value is false.
|
boolean |
isNonInvalid()
Return true if this value is false.
|
boolean |
isNonNull()
Return true if this value is not null.
|
boolean |
isNull()
Return true if this value is null.
|
boolean |
isSettable()
Return true if this value can be inlined as an expression term.
|
boolean |
isTrue()
Return true if this value is true.
|
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 |
setCaught(boolean isCaught)
Set the caught status.
|
void |
setValueName(java.lang.String valueName)
Set the name of the value.
|
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
getAst, getName, setAst, setName
accept, getChildren, getParent, getPlace, isContext, rewriteAs
java.util.List<CGValuedElement> getDependsOn()
CGValuedElement
.
The elements that must be declared before this element.
CGModelPackage.getCGValuedElement_DependsOn()
java.util.List<CGValuedElement> getOwns()
CGValuedElement
.
If the meaning of the 'Owns' containment reference list isn't clear, there really should be more of a description here...
CGModelPackage.getCGValuedElement_Owns()
@Nullable org.eclipse.emf.ecore.EClassifier getEcoreClassifier()
@Nullable CGInvalid getInvalidValue()
@NonNull CGValuedElement getNamedValue()
@NonNull CGValuedElement getReferredValue()
@NonNull CGValuedElement getSourceValue()
@NonNull CGValuedElement getThisValue()
@NonNull CGValuedElement getTypedValue()
@Nullable java.lang.String getValueName()
boolean isAssertedNonNull()
boolean isBoxed()
boolean isCaught()
boolean isCommonable()
boolean isConstant()
boolean isEcore()
@Nullable java.lang.Boolean isEquivalentTo(@NonNull CGValuedElement thatValue)
@Nullable java.lang.Boolean isEquivalentToInternal(@NonNull CGValuedElement thatValue)
boolean isFalse()
boolean isGlobal()
boolean isInlined()
boolean isInvalid()
boolean isNonInvalid()
boolean isNonNull()
boolean isNull()
boolean isSettable()
boolean isTrue()
boolean isUnboxed()
boolean isUncommonable()
void setCaught(boolean isCaught)
void setValueName(@NonNull java.lang.String valueName)