public class UnboxedElementsDescriptor extends AbstractCollectionDescriptor implements UnboxedDescriptor
This descriptor is used in JUnit tests for expressions and when the genModel is unknown.
Constructor and Description |
---|
UnboxedElementsDescriptor(CollectionTypeId collectionTypeId,
StandardLibrary standardLibrary,
Type type) |
Modifier and Type | Method and Description |
---|---|
void |
append(JavaStream javaStream,
Boolean isRequired)
Append the declaration of this type to a JavaStream.
|
void |
appendElement(JavaStream javaStream,
boolean reClass) |
String |
getClassName()
Return the fully qualified Java class name described by this type.
|
EcoreDescriptor |
getEcoreDescriptor(CodeGenerator codeGenerator,
Class<?> instanceClass)
Return the type descriptor for use when an Ecore type would be appropriate.
|
Class<?> |
getJavaClass()
Return the basic Java class for this descriptor.
|
UnboxedDescriptor |
getUnboxedDescriptor(CodeGenerator codeGenerator)
Return the type descriptor for use when an unboxed type would be appropriate.
|
Class<?> |
hasJavaClass()
Return the basic Java class for this descriptor.
|
boolean |
isAssignableFrom(TypeDescriptor typeDescriptor)
Return true if an instance described by typeDescriptor may be assigned to an instance described by this.
|
String |
toString() |
append, appendBox, appendEcore, asCollectionDescriptor, getElementId, isAssignableTo
appendCast, appendCastTerm, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getEClassifier, getPrimitiveDescriptor, isPrimitive
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo, isPrimitive
public UnboxedElementsDescriptor(CollectionTypeId collectionTypeId, StandardLibrary standardLibrary, Type type)
public void append(JavaStream javaStream, Boolean isRequired)
TypeDescriptor
append
in interface TypeDescriptor
public EcoreDescriptor getEcoreDescriptor(CodeGenerator codeGenerator, Class<?> instanceClass)
TypeDescriptor
getEcoreDescriptor
in interface TypeDescriptor
public void appendElement(JavaStream javaStream, boolean reClass)
appendElement
in interface CollectionDescriptor
appendElement
in class AbstractCollectionDescriptor
public String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
public Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
public UnboxedDescriptor getUnboxedDescriptor(CodeGenerator codeGenerator)
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
public Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
public final boolean isAssignableFrom(TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
public String toString()
toString
in class AbstractCollectionDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.