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, isPrimitive
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendCast, appendCastTerm, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getClassName, getEClassifier, getEcoreDescriptor, getJavaClass, getPrimitiveDescriptor, getUnboxedDescriptor, hasJavaClass, isAssignableFrom, isPrimitive
public AbstractCollectionDescriptor(CollectionTypeId collectionTypeId)
public void append(JavaStream javaStream, boolean reClass)
append
in interface CollectionDescriptor
public Boolean appendBox(JavaStream js, JavaLocalContext<?> localContext, CGBoxExp cgBoxExp, CGValuedElement unboxedValue)
TypeDescriptor
appendBox
in interface TypeDescriptor
appendBox
in class AbstractDescriptor
public Boolean appendEcore(JavaStream js, JavaLocalContext<?> localContext, CGEcoreExp cgEcoreExp, CGValuedElement nonEcoreValue)
TypeDescriptor
appendEcore
in interface TypeDescriptor
appendEcore
in class AbstractDescriptor
public void appendElement(JavaStream javaStream, boolean reClass)
appendElement
in interface CollectionDescriptor
public CollectionDescriptor asCollectionDescriptor()
TypeDescriptor
asCollectionDescriptor
in interface TypeDescriptor
asCollectionDescriptor
in class AbstractDescriptor
public CollectionTypeId getElementId()
getElementId
in interface CollectionDescriptor
getElementId
in class AbstractDescriptor
public boolean isAssignableTo(Class<?> javaClass)
TypeDescriptor
isAssignableTo
in interface TypeDescriptor
isAssignableTo
in class AbstractDescriptor
public String toString()
toString
in class AbstractDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.