public class UnboxedValueDescriptor extends AbstractValueDescriptor implements EcoreDescriptor, UnboxedDescriptor
Thus an Integer is a TypeId.INTEGER and a java.lang.Integer.
| Constructor and Description |
|---|
UnboxedValueDescriptor(ElementId elementId,
Class<?> javaClass) |
| Modifier and Type | Method and Description |
|---|---|
EcoreDescriptor |
getEcoreDescriptor(CodeGenerator codeGenerator,
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, toStringappendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getElementId, getPrimitiveDescriptor, isPrimitiveequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo, isPrimitivepublic EcoreDescriptor getEcoreDescriptor(CodeGenerator codeGenerator, Class<?> instanceClass)
TypeDescriptorgetEcoreDescriptor in interface TypeDescriptorpublic UnboxedDescriptor getUnboxedDescriptor(CodeGenerator codeGenerator)
TypeDescriptorgetUnboxedDescriptor in interface TypeDescriptorpublic final boolean isAssignableFrom(TypeDescriptor typeDescriptor)
TypeDescriptorisAssignableFrom in interface TypeDescriptorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.