public class UnboxedValueDescriptor extends AbstractValueDescriptor implements EcoreDescriptor, UnboxedDescriptor
Thus an Integer is a TypeId.INTEGER and a java.lang.Integer.
AbstractDescriptor.NamedFuture
javaClass
elementId
Constructor and Description |
---|
UnboxedValueDescriptor(ElementId elementId,
java.lang.Class<?> javaClass) |
Modifier and Type | Method and Description |
---|---|
EcoreDescriptor |
getEcoreDescriptor(CodeGenerator codeGenerator,
java.lang.Class<?> instanceClass)
Return the type descriptor for use when an Ecore type would be appropriate.
|
UnboxedDescriptor |
getUnboxedDescriptor(CodeGenerator codeGenerator)
Return the type descriptor for use when an unboxed type would be appropriate.
|
boolean |
isAssignableFrom(TypeDescriptor typeDescriptor)
Return true if an instance described by typeDescriptor may be assigned to an instance described by this.
|
append, getClassName, getJavaClass, hasJavaClass, isAssignableTo, toString
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getElementId, getPrimitiveDescriptor, isBoxedType, isPrimitive, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo, isPrimitive
public UnboxedValueDescriptor(@NonNull ElementId elementId, @NonNull java.lang.Class<?> javaClass)
@NonNull public EcoreDescriptor getEcoreDescriptor(@NonNull CodeGenerator codeGenerator, @Nullable java.lang.Class<?> instanceClass)
TypeDescriptor
getEcoreDescriptor
in interface TypeDescriptor
@NonNull public UnboxedDescriptor getUnboxedDescriptor(@NonNull CodeGenerator codeGenerator)
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
public final boolean isAssignableFrom(@NonNull TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor