Interface ArrayEntry
- All Superinterfaces:
DescribableEntry
- All Known Implementing Classes:
BasicArrayEntry
Metadata model of an array type.
- Author:
- Matt Coley
-
Method Summary
Modifier and TypeMethodDescriptionintdefault booleanisAssignableFrom(ArrayEntry other) default booleanisAssignableFrom(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.Methods inherited from interface software.coley.sourcesolver.resolve.entry.DescribableEntry
getDescriptor
-
Method Details
-
getDimensions
int getDimensions()- Returns:
- Dimensions of the array.
-
getElementEntry
- Returns:
- Element type of the array.
-
isAssignableFrom
Description copied from interface:DescribableEntryCheck if another entry is assignable to the type represented by this entry.- Specified by:
isAssignableFromin interfaceDescribableEntry- Parameters:
other- Some other entry.- Returns:
truewhen the other entry is assignable to the type represented by this entry.
-
isAssignableFrom
-
toArrayEntry
Description copied from interface:DescribableEntryCreate an array entry with this entry as the element type.- Specified by:
toArrayEntryin interfaceDescribableEntry- Parameters:
dimensions- Number of dimensions to represent.- Returns:
- Array of the current entry as the element type, with the given number of dimentions.
-