public class UnboxedMapDescriptor extends AbstractDescriptor implements EcoreDescriptor, UnboxedDescriptor, MapDescriptor
Theis descriptor is used in JUnit tests for expressions and when the genModel is unknown.
AbstractDescriptor.NamedFuture
Modifier and Type | Field and Description |
---|---|
protected Type |
keyType |
protected StandardLibrary |
standardLibrary |
protected Type |
valueType |
elementId
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,
java.lang.Boolean isRequired)
Append the declaration of this type to a JavaStream.
|
void |
appendElement(JavaStream javaStream,
boolean reClass) |
java.lang.String |
getClassName()
Return the fully qualified Java class name described by this type.
|
EcoreDescriptor |
getEcoreDescriptor(CodeGenerator codeGenerator,
java.lang.Class<?> instanceClass)
Return the type descriptor for use when an Ecore type would be appropriate.
|
MapTypeId |
getElementId() |
java.lang.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.
|
java.lang.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.
|
java.lang.String |
toString() |
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo, isBoxedType, isPrimitive, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo, isPrimitive
@NonNull protected final StandardLibrary standardLibrary
@NonNull protected final Type keyType
@NonNull protected final Type valueType
public UnboxedMapDescriptor(@NonNull MapTypeId mapTypeId, @NonNull StandardLibrary standardLibrary, @NonNull Type keyType, @NonNull Type valueType)
public void append(@NonNull JavaStream javaStream, @Nullable java.lang.Boolean isRequired)
TypeDescriptor
append
in interface TypeDescriptor
public void appendElement(@NonNull JavaStream javaStream, boolean reClass)
appendElement
in interface MapDescriptor
@NonNull public java.lang.String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
@NonNull public EcoreDescriptor getEcoreDescriptor(@NonNull CodeGenerator codeGenerator, @Nullable java.lang.Class<?> instanceClass)
TypeDescriptor
getEcoreDescriptor
in interface TypeDescriptor
@NonNull public MapTypeId getElementId()
getElementId
in interface MapDescriptor
getElementId
in class AbstractDescriptor
@NonNull public java.lang.Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
@NonNull public UnboxedDescriptor getUnboxedDescriptor(@NonNull CodeGenerator codeGenerator)
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
@Nullable public java.lang.Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
public final boolean isAssignableFrom(@NonNull TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
@NonNull public java.lang.String toString()
toString
in class AbstractDescriptor
public void append(@NonNull JavaStream javaStream, boolean reClass)
append
in interface MapDescriptor