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.
Constructor and Description |
---|
FutureEnumerationValueDescriptor(ElementId elementId,
EClassifier eClassifier,
String className) |
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.
|
String |
getClassName()
Return the fully qualified Java class name described by this type.
|
EClassifier |
getEClassifier()
Return the Ecore EClassifier described by this type.
|
Class<?> |
getJavaClass()
Return the basic Java class for this descriptor.
|
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, isPrimitive
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getPrimitiveDescriptor, 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 String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
getClassName
in class AbstractValueDescriptor
public EClassifier getEClassifier()
TypeDescriptor
getEClassifier
in interface TypeDescriptor
getEClassifier
in class AbstractDescriptor
public Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
getJavaClass
in class AbstractValueDescriptor
public Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
hasJavaClass
in class AbstractValueDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.