java.lang.Object
tools.jackson.core.sym.PropertyNameMatcher
tools.jackson.core.sym.HashedMatcherBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BinaryNameMatcher,SimpleNameMatcher
Intermediate base class for matchers that use hash-array based approach
with Strings.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intMask used to get index from raw hash code, within hash area.protected final String[]protected final int[]Fields inherited from class tools.jackson.core.sym.PropertyNameMatcher
_backupMatcher, _locale, _nameLookup, MATCH_END_OBJECT, MATCH_ODD_TOKEN, MATCH_UNKNOWN_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHashedMatcherBase(Locale locale, String[] names, int[] offsets, int mask, PropertyNameMatcher backup, String[] nameLookup) protectedHashedMatcherBase(HashedMatcherBase base, String[] nameLookup) protectedHashedMatcherBase(HashedMatcherBase base, PropertyNameMatcher fallback) -
Method Summary
Modifier and TypeMethodDescriptionprotected int_matchSpill(String toMatch) final intLookup method that does not assume name to be matched to beString.intern()ed (although passing interned String is likely to result in more efficient matching).intintMethods inherited from class tools.jackson.core.sym.PropertyNameMatcher
_findSize, _fromName, _hash, _lc, matchByQuad, matchByQuad, matchByQuad, matchByQuad, matchSecondary, nameLookup, stringsFromNames
-
Field Details
-
_mask
protected final int _maskMask used to get index from raw hash code, within hash area. -
_offsets
protected final int[] _offsets -
_names
-
-
Constructor Details
-
HashedMatcherBase
protected HashedMatcherBase(Locale locale, String[] names, int[] offsets, int mask, PropertyNameMatcher backup, String[] nameLookup) -
HashedMatcherBase
-
HashedMatcherBase
-
-
Method Details
-
matchName
Description copied from class:PropertyNameMatcherLookup method that does not assume name to be matched to beString.intern()ed (although passing interned String is likely to result in more efficient matching).- Specified by:
matchNamein classPropertyNameMatcher- Parameters:
toMatch- Name to match- Returns:
- Index of the name matched, if any (non-negative number); or an
error code (negative constant
MATCH_xxx) if none
-
_matchSpill
-
spillCount
public int spillCount() -
secondaryCount
public int secondaryCount()
-