public class SimpleValueDescriptor extends AbstractValueDescriptor implements SimpleDescriptor
Thus a StringValue is a TypeId.STRING and a java.lang.String.
Constructor and Description |
---|
SimpleValueDescriptor(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, toString
appendBox, appendCast, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getElementId, getPrimitiveDescriptor, isPrimitive
equals, 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 EcoreDescriptor getEcoreDescriptor(CodeGenerator codeGenerator, Class<?> instanceClass)
TypeDescriptor
getEcoreDescriptor
in interface TypeDescriptor
public final boolean isAssignableFrom(TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
public UnboxedDescriptor getUnboxedDescriptor(CodeGenerator codeGenerator)
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.