public class UnboxedMapDescriptor extends AbstractDescriptor implements EcoreDescriptor, UnboxedDescriptor, MapDescriptor
Theis descriptor is used in JUnit tests for expressions and when the genModel is unknown.
| Constructor and Description |
|---|
UnboxedMapDescriptor(MapTypeId mapTypeId,
StandardLibrary standardLibrary,
Type keyType,
Type valueType) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(JavaStream javaStream,
boolean reClass) |
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.
|
MapTypeId |
getElementId() |
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() |
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo, isPrimitiveequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo, isPrimitivepublic UnboxedMapDescriptor(MapTypeId mapTypeId, StandardLibrary standardLibrary, Type keyType, Type valueType)
public void append(JavaStream javaStream, Boolean isRequired)
TypeDescriptorappend in interface TypeDescriptorpublic void appendElement(JavaStream javaStream, boolean reClass)
appendElement in interface MapDescriptorpublic String getClassName()
TypeDescriptorgetClassName in interface TypeDescriptorpublic EcoreDescriptor getEcoreDescriptor(CodeGenerator codeGenerator, Class<?> instanceClass)
TypeDescriptorgetEcoreDescriptor in interface TypeDescriptorpublic MapTypeId getElementId()
getElementId in interface MapDescriptorgetElementId in class AbstractDescriptorpublic Class<?> getJavaClass()
TypeDescriptorgetJavaClass in interface TypeDescriptorpublic UnboxedDescriptor getUnboxedDescriptor(CodeGenerator codeGenerator)
TypeDescriptorgetUnboxedDescriptor in interface TypeDescriptorpublic Class<?> hasJavaClass()
TypeDescriptorhasJavaClass in interface TypeDescriptorpublic final boolean isAssignableFrom(TypeDescriptor typeDescriptor)
TypeDescriptorisAssignableFrom in interface TypeDescriptorpublic String toString()
toString in class AbstractDescriptorpublic void append(JavaStream javaStream, boolean reClass)
append in interface MapDescriptorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.