public class MMapEntriesAccessor extends AbstractMapAccessor
IReadAccessor.Standalone
Modifier and Type | Field and Description |
---|---|
static String |
ENTRIES_ID |
internalExpectedGenericType, internalExpectedType, source
Constructor and Description |
---|
MMapEntriesAccessor() |
MMapEntriesAccessor(IReadAccessor source) |
Modifier and Type | Method and Description |
---|---|
<G,C extends Collection<G>> |
compileCollection(ICompilationContext ctxt,
Class<C> expectedType,
Class<G> expectedGenericType)
Implementation to handle case when expected result is a Collection.
|
protected Class<?> |
getDefaultType() |
Class<?> |
getGenericCollectionType(IContext ctxt)
Returns requested generic type if any, otherwise the source's generic type if any.
|
String |
getImplementationId()
Unique addon implementation ID.
|
protected Object |
handleMap(Map<?,?> value) |
compileValue, getType, parseCollections, specificHandleValue
clone, equals, getEstimatedReadCost, getInternalCacheIdentifier, getSource, handleValue, hashCode, internalGet, isCacheUsed, isConstantValue, isInternalCacheIdentifierNeeded, isShouldIterate, resetCachedData, setInternalCacheIdentifier, setSource, toString, wasRegistered
castToExpected, compileRead, compileRead, compileRead, compileRead, get, getGenericTypes, isShouldBeWrappedToConstantValue, isShouldNotCache
optimize, toString
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String ENTRIES_ID
public MMapEntriesAccessor()
public MMapEntriesAccessor(IReadAccessor source)
public <G,C extends Collection<G>> void compileCollection(ICompilationContext ctxt, Class<C> expectedType, Class<G> expectedGenericType) throws MRuleValidationException
AbstractReadAccessor
compileCollection
in class AbstractMapAccessor
MRuleValidationException
public String getImplementationId()
IAddon
protected Object handleMap(Map<?,?> value)
handleMap
in class AbstractMapAccessor
public Class<?> getGenericCollectionType(IContext ctxt) throws MAccessorException
AbstractReadSourceAccessor
getGenericCollectionType
in interface IAccessor
getGenericCollectionType
in class AbstractReadSourceAccessor
MAccessorException
protected Class<?> getDefaultType()
getDefaultType
in class AbstractMapAccessor