public class EnumerationValueDescriptor extends BoxedValueDescriptor
| Constructor and Description |
|---|
EnumerationValueDescriptor(ElementId elementId,
EClassifier eClassifier,
Class<?> ecoreJavaClass) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
EClassifier |
getEClassifier()
Return the Ecore EClassifier described by this type.
|
getEcoreDescriptor, getUnboxedDescriptor, isAssignableFromappend, getClassName, getJavaClass, hasJavaClass, isAssignableTo, toStringappendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getElementId, getPrimitiveDescriptor, isPrimitiveequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getClassName, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo, isPrimitivepublic Boolean appendEcoreStatements(JavaStream js, JavaLocalContext<?> localContext, CGEcoreExp cgEcoreExp, CGValuedElement boxedValue)
TypeDescriptorappendEcoreStatements in interface TypeDescriptorappendEcoreStatements in class AbstractDescriptorpublic void appendEqualsValue(JavaStream js, CGValuedElement thisValue, CGValuedElement thatValue, boolean notEquals)
TypeDescriptorappendEqualsValue in interface TypeDescriptorappendEqualsValue in class AbstractDescriptorpublic Boolean appendUnboxStatements(JavaStream js, JavaLocalContext<?> localContext, CGUnboxExp cgUnboxExp, CGValuedElement boxedValue)
TypeDescriptorappendUnboxStatements in interface TypeDescriptorappendUnboxStatements in class AbstractDescriptorpublic EClassifier getEClassifier()
TypeDescriptorgetEClassifier in interface TypeDescriptorgetEClassifier in class AbstractDescriptorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.