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, isAssignableFrom
append, getClassName, getJavaClass, hasJavaClass, isAssignableTo, toString
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getElementId, getPrimitiveDescriptor, isPrimitive
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, asCollectionDescriptor, getClassName, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo, isPrimitive
public Boolean appendEcoreStatements(JavaStream js, JavaLocalContext<?> localContext, CGEcoreExp cgEcoreExp, CGValuedElement boxedValue)
TypeDescriptor
appendEcoreStatements
in interface TypeDescriptor
appendEcoreStatements
in class AbstractDescriptor
public void appendEqualsValue(JavaStream js, CGValuedElement thisValue, CGValuedElement thatValue, boolean notEquals)
TypeDescriptor
appendEqualsValue
in interface TypeDescriptor
appendEqualsValue
in class AbstractDescriptor
public Boolean appendUnboxStatements(JavaStream js, JavaLocalContext<?> localContext, CGUnboxExp cgUnboxExp, CGValuedElement boxedValue)
TypeDescriptor
appendUnboxStatements
in interface TypeDescriptor
appendUnboxStatements
in class AbstractDescriptor
public EClassifier getEClassifier()
TypeDescriptor
getEClassifier
in interface TypeDescriptor
getEClassifier
in class AbstractDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.