public class EnumerationValueDescriptor extends BoxedValueDescriptor
AbstractDescriptor.NamedFuture
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EClassifier |
eClassifier |
protected java.lang.Class<?> |
ecoreJavaClass |
javaClass
elementId
Constructor and Description |
---|
EnumerationValueDescriptor(ElementId elementId,
org.eclipse.emf.ecore.EClassifier eClassifier,
java.lang.Class<?> ecoreJavaClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
appendEcoreStatements(JavaStream js,
JavaLocalContext<?> localContext,
CGEcoreExp cgEcoreExp,
CGValuedElement boxedValue)
Append the appropriate statements to js to create the ecore value for cgEcoreExp from its boxedValue.
|
void |
appendEqualsValue(JavaStream js,
CGValuedElement thisValue,
CGValuedElement thatValue,
boolean notEquals)
Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equals/ notEquals to thatValue.
|
java.lang.Boolean |
appendUnboxStatements(JavaStream js,
JavaLocalContext<?> localContext,
CGUnboxExp cgUnboxExp,
CGValuedElement boxedValue)
Append the appropriate statements to js to create the unboxed value for cgUnboxExp from its boxedValue.
|
protected EcoreDescriptor |
createEcoreDescriptor() |
protected UnboxedDescriptor |
createUnboxedDescriptor() |
getEcoreDescriptor, getUnboxedDescriptor, isAssignableFrom
append, getClassName, getJavaClass, hasJavaClass, isAssignableTo, toString
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getEClassifier, getElementId, getPrimitiveDescriptor, isBoxedType, isPrimitive, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo, isPrimitive
@NonNull protected final org.eclipse.emf.ecore.EClassifier eClassifier
@NonNull protected final java.lang.Class<?> ecoreJavaClass
public EnumerationValueDescriptor(@NonNull ElementId elementId, @NonNull org.eclipse.emf.ecore.EClassifier eClassifier, @NonNull java.lang.Class<?> ecoreJavaClass)
@NonNull public java.lang.Boolean appendEcoreStatements(@NonNull JavaStream js, @NonNull JavaLocalContext<?> localContext, @NonNull CGEcoreExp cgEcoreExp, @NonNull CGValuedElement boxedValue)
TypeDescriptor
appendEcoreStatements
in interface TypeDescriptor
appendEcoreStatements
in class AbstractDescriptor
public void appendEqualsValue(@NonNull JavaStream js, @NonNull CGValuedElement thisValue, @NonNull CGValuedElement thatValue, boolean notEquals)
TypeDescriptor
appendEqualsValue
in interface TypeDescriptor
appendEqualsValue
in class AbstractDescriptor
@NonNull public java.lang.Boolean appendUnboxStatements(@NonNull JavaStream js, @NonNull JavaLocalContext<?> localContext, @NonNull CGUnboxExp cgUnboxExp, @NonNull CGValuedElement boxedValue)
TypeDescriptor
appendUnboxStatements
in interface TypeDescriptor
appendUnboxStatements
in class AbstractDescriptor
@NonNull protected EcoreDescriptor createEcoreDescriptor()
createEcoreDescriptor
in class BoxedValueDescriptor
@NonNull protected UnboxedDescriptor createUnboxedDescriptor()
createUnboxedDescriptor
in class BoxedValueDescriptor