public abstract class BoxedValueDescriptor extends AbstractValueDescriptor implements BoxedDescriptor
Thus an IntegerValue is a TypeId.INTEGER and an org.eclipse.ocl.domain.values.IntegerValue.
AbstractDescriptor.NamedFuture
javaClass
elementId
Constructor and Description |
---|
BoxedValueDescriptor(ElementId elementId,
java.lang.Class<?> javaClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract EcoreDescriptor |
createEcoreDescriptor() |
protected abstract UnboxedDescriptor |
createUnboxedDescriptor() |
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 BoxedValueDescriptor(@NonNull ElementId elementId, @NonNull java.lang.Class<?> javaClass)
@NonNull protected abstract EcoreDescriptor createEcoreDescriptor()
@NonNull protected abstract UnboxedDescriptor createUnboxedDescriptor()
@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