Top Description Fields Constructors Methods
tools.jackson.core.sym

public abstract Class HashedMatcherBase

extends PropertyNameMatcher
Class Inheritance
Known Direct Subclasses
tools.jackson.core.sym.SimpleNameMatcher, tools.jackson.core.sym.BinaryNameMatcher
Imports
java.util.Locale

Intermediate base class for matchers that use hash-array based approach with Strings.

Field Summary

Modifier and TypeField and Description
protected final int
_mask

Mask used to get index from raw hash code, within hash area.

protected final String[]
protected final int[]
private static final long
Inherited from tools.jackson.core.sym.PropertyNameMatcher:
_backupMatcher_locale_nameLookupMATCH_END_OBJECTMATCH_ODD_TOKENMATCH_UNKNOWN_NAME

Constructor Summary

AccessConstructor and Description
protected
HashedMatcherBase(Locale locale, String[] names, int[] offsets, int mask, PropertyNameMatcher backup, String[] nameLookup)

protected
protected

Method Summary

Modifier and TypeMethod and Description
private final int
_matchName2(String toMatch, int ix, int ix2)

protected int
public final int
matchName(String toMatch)

Implements abstract tools.jackson.core.sym.PropertyNameMatcher.matchName.

Lookup method that does not assume name to be matched to be String#interned (although passing interned String is likely to result in more efficient matching).

public int
public int
Inherited from tools.jackson.core.sym.PropertyNameMatcher:
_findSize_fromName_hash_lcmatchByQuadmatchByQuadmatchByQuadmatchByQuadmatchSecondarynameLookupstringsFromNames

Field Detail

_maskback to summary
protected final int _mask

Mask used to get index from raw hash code, within hash area.

_namesback to summary
protected final String[] _names
_offsetsback to summary
protected final int[] _offsets
serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.core.sym.PropertyNameMatcher.serialVersionUID.

Constructor Detail

HashedMatcherBaseback to summary
protected HashedMatcherBase(Locale locale, String[] names, int[] offsets, int mask, PropertyNameMatcher backup, String[] nameLookup)
HashedMatcherBaseback to summary
protected HashedMatcherBase(HashedMatcherBase base, String[] nameLookup)
HashedMatcherBaseback to summary
protected HashedMatcherBase(HashedMatcherBase base, PropertyNameMatcher fallback)

Method Detail

_matchName2back to summary
private final int _matchName2(String toMatch, int ix, int ix2)
_matchSpillback to summary
protected int _matchSpill(String toMatch)
matchNameback to summary
public final int matchName(String toMatch)

Implements abstract tools.jackson.core.sym.PropertyNameMatcher.matchName.

Doc from tools.jackson.core.sym.PropertyNameMatcher.matchName.

Lookup method that does not assume name to be matched to be String#interned (although passing interned String is likely to result in more efficient matching).

Annotations
@Override
secondaryCountback to summary
public int secondaryCount()
spillCountback to summary
public int spillCount()