public abstract class AbstractCollectionDescriptor extends AbstractDescriptor implements CollectionDescriptor
| Constructor and Description |
|---|
AbstractCollectionDescriptor(CollectionTypeId collectionTypeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(JavaStream javaStream,
boolean reClass) |
Boolean |
appendBox(JavaStream js,
JavaLocalContext<?> localContext,
CGBoxExp cgBoxExp,
CGValuedElement unboxedValue)
Append the appropriate statements to js to create the boxed value for cgBboxExp from its unboxedValue.
|
Boolean |
appendEcore(JavaStream js,
JavaLocalContext<?> localContext,
CGEcoreExp cgEcoreExp,
CGValuedElement nonEcoreValue)
Append a conversion to an Ecore value.
|
void |
appendElement(JavaStream javaStream,
boolean reClass) |
CollectionDescriptor |
asCollectionDescriptor()
Return a non-null Collection type descriptor if this type descriptor describes a Collection.
|
CollectionTypeId |
getElementId() |
boolean |
isAssignableTo(Class<?> javaClass)
Return true if an instance described by this typeDescriptor may be assigned to a javaClass.
|
String |
toString() |
appendCast, appendCastTerm, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getEClassifier, getPrimitiveDescriptor, isPrimitiveequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, appendCast, appendCastTerm, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getClassName, getEClassifier, getEcoreDescriptor, getJavaClass, getPrimitiveDescriptor, getUnboxedDescriptor, hasJavaClass, isAssignableFrom, isPrimitivepublic AbstractCollectionDescriptor(CollectionTypeId collectionTypeId)
public void append(JavaStream javaStream, boolean reClass)
append in interface CollectionDescriptorpublic Boolean appendBox(JavaStream js, JavaLocalContext<?> localContext, CGBoxExp cgBoxExp, CGValuedElement unboxedValue)
TypeDescriptorappendBox in interface TypeDescriptorappendBox in class AbstractDescriptorpublic Boolean appendEcore(JavaStream js, JavaLocalContext<?> localContext, CGEcoreExp cgEcoreExp, CGValuedElement nonEcoreValue)
TypeDescriptorappendEcore in interface TypeDescriptorappendEcore in class AbstractDescriptorpublic void appendElement(JavaStream javaStream, boolean reClass)
appendElement in interface CollectionDescriptorpublic CollectionDescriptor asCollectionDescriptor()
TypeDescriptorasCollectionDescriptor in interface TypeDescriptorasCollectionDescriptor in class AbstractDescriptorpublic CollectionTypeId getElementId()
getElementId in interface CollectionDescriptorgetElementId in class AbstractDescriptorpublic boolean isAssignableTo(Class<?> javaClass)
TypeDescriptorisAssignableTo in interface TypeDescriptorisAssignableTo in class AbstractDescriptorpublic String toString()
toString in class AbstractDescriptorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.