public class UnboxedElementsDescriptor extends AbstractCollectionDescriptor implements UnboxedDescriptor
Theis descriptor is used in JUnit tests for expressions and when the genModel is unknown.
AbstractDescriptor.NamedFuture
Modifier and Type | Field and Description |
---|---|
protected StandardLibrary |
standardLibrary |
protected Type |
type |
elementId
Constructor and Description |
---|
UnboxedElementsDescriptor(CollectionTypeId collectionTypeId,
StandardLibrary standardLibrary,
Type type) |
Modifier and Type | Method and Description |
---|---|
void |
append(JavaStream javaStream)
Append the declaration of this type to a JavaStream.
|
void |
appendElement(JavaStream javaStream,
boolean reClass) |
java.lang.String |
getClassName()
Return the fully qualified Java class name described by this type.
|
java.lang.Class<?> |
getJavaClass()
Return the basic Java class for this descriptor.
|
UnboxedDescriptor |
getUnboxedDescriptor()
Return the type descriptor for use when an unboxed type would be appropriate.
|
java.lang.Class<?> |
hasJavaClass()
Return the basic Java class for this descriptor.
|
boolean |
isAssignableFrom(TypeDescriptor typeDescriptor)
Return true if an instance described by typeDescriptor may be assigned to an instance described by this.
|
java.lang.String |
toString() |
append, appendBox, asCollectionDescriptor, getElementId, isAssignableTo
appendCast, appendCastTerm, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, getEClassifier, getPrimitiveDescriptor, isBoxedType, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendBox, appendCast, appendCastTerm, appendEqualsValue, appendNotEqualsTerm, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getPrimitiveDescriptor, isAssignableTo
@NonNull protected final StandardLibrary standardLibrary
public UnboxedElementsDescriptor(@NonNull CollectionTypeId collectionTypeId, @NonNull StandardLibrary standardLibrary, @NonNull Type type)
public void append(@NonNull JavaStream javaStream)
TypeDescriptor
append
in interface TypeDescriptor
public void appendElement(@NonNull JavaStream javaStream, boolean reClass)
appendElement
in interface CollectionDescriptor
appendElement
in class AbstractCollectionDescriptor
@NonNull public java.lang.String getClassName()
TypeDescriptor
getClassName
in interface TypeDescriptor
@NonNull public java.lang.Class<?> getJavaClass()
TypeDescriptor
getJavaClass
in interface TypeDescriptor
@NonNull public UnboxedDescriptor getUnboxedDescriptor()
TypeDescriptor
getUnboxedDescriptor
in interface TypeDescriptor
@Nullable public java.lang.Class<?> hasJavaClass()
TypeDescriptor
hasJavaClass
in interface TypeDescriptor
public final boolean isAssignableFrom(@NonNull TypeDescriptor typeDescriptor)
TypeDescriptor
isAssignableFrom
in interface TypeDescriptor
@NonNull public java.lang.String toString()
toString
in class AbstractCollectionDescriptor