public class SimpleValueDescriptor extends AbstractValueDescriptor implements SimpleDescriptor
Thus a StringValue is a TypeId.STRING and a java.lang.String.
AbstractDescriptor.NamedFuture
javaClass
elementId
Constructor and Description |
---|
SimpleValueDescriptor(ElementId elementId,
java.lang.Class<?> javaClass) |
Modifier and Type | Method and Description |
---|---|
UnboxedDescriptor |
getUnboxedDescriptor()
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, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getElementId, getPrimitiveDescriptor, isBoxedType, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCast, appendCastTerm, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, hasJavaClass, isAssignableTo
public final boolean isAssignableFrom(@NonNull TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
@NonNull public UnboxedDescriptor getUnboxedDescriptor()
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor