Interface DescribableEntry
- All Known Subinterfaces:
ArrayEntry,ClassEntry,FieldEntry,MemberEntry,MethodEntry,NullEntry,PrimitiveEntry
- All Known Implementing Classes:
BasicArrayEntry,BasicClassEntry,BasicFieldEntry,BasicMethodEntry,BasicNullEntry,BasicPrimitiveEntry,ReflectiveClassEntry,StaticFilteredClassEntry
public sealed interface DescribableEntry
permits ArrayEntry, ClassEntry, PrimitiveEntry, NullEntry, MemberEntry
Metadata model that can be represented with a type descriptor.
- Author:
- Matt Coley
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAssignableFrom(DescribableEntry other) Check if another entry is assignable to the type represented by this entry.default ArrayEntrytoArrayEntry(int dimensions) Create an array entry with this entry as the element type.
-
Method Details
-
getDescriptor
- Returns:
- Type descriptor of this entry.
-
toArrayEntry
Create an array entry with this entry as the element type.- Parameters:
dimensions- Number of dimensions to represent.- Returns:
- Array of the current entry as the element type, with the given number of dimentions.
-
isAssignableFrom
Check if another entry is assignable to the type represented by this entry.- Parameters:
other- Some other entry.- Returns:
truewhen the other entry is assignable to the type represented by this entry.
-