public class FutureEnumerationValueDescriptor extends BoxedValueDescriptor
The Java class is only known by name; it is not yet loadable, since genmodel has not yet generated it.
There is no EClassifier available to perform type conformance checks since thie Java class name was provided as an instanceClassName.
AbstractDescriptor.NamedFuture
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected org.eclipse.emf.ecore.EClassifier |
eClassifier |
javaClass
elementId
Constructor and Description |
---|
FutureEnumerationValueDescriptor(ElementId elementId,
org.eclipse.emf.ecore.EClassifier eClassifier,
java.lang.String className) |
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.
|
protected EcoreDescriptor |
createEcoreDescriptor() |
protected UnboxedDescriptor |
createUnboxedDescriptor() |
java.lang.String |
getClassName()
Return the fully qualified Java class name described by this type.
|
org.eclipse.emf.ecore.EClassifier |
getEClassifier()
Return the Ecore EClassifier described by this type.
|
java.lang.Class<?> |
getJavaClass()
Return the basic Java class for this descriptor.
|
java.lang.Class<?> |
hasJavaClass()
Return the basic Java class for this descriptor.
|
getEcoreDescriptor, getUnboxedDescriptor, isAssignableFrom
append, isAssignableTo, toString
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getElementId, getPrimitiveDescriptor, isBoxedType, isPrimitive, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getPrimitiveDescriptor, isAssignableTo, isPrimitive
@NonNull protected final org.eclipse.emf.ecore.EClassifier eClassifier
@NonNull protected final java.lang.String className
public FutureEnumerationValueDescriptor(@NonNull ElementId elementId, @NonNull org.eclipse.emf.ecore.EClassifier eClassifier, @NonNull java.lang.String className)
@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 protected EcoreDescriptor createEcoreDescriptor()
createEcoreDescriptor
in class BoxedValueDescriptor
@NonNull protected UnboxedDescriptor createUnboxedDescriptor()
createUnboxedDescriptor
in class BoxedValueDescriptor
@NonNull public java.lang.String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
getClassName
in class AbstractValueDescriptor
@Nullable public org.eclipse.emf.ecore.EClassifier getEClassifier()
TypeDescriptor
getEClassifier
in interface TypeDescriptor
getEClassifier
in class AbstractDescriptor
@NonNull public java.lang.Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
getJavaClass
in class AbstractValueDescriptor
@Nullable public java.lang.Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
hasJavaClass
in class AbstractValueDescriptor