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

public Class SimpleNameMatcher

extends HashedMatcherBase
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.*, tools.jackson.core.util.Named

Basic PropertyNameMatcher that uses case-sensitive match and does not require (or expect) that names passed as arguments have been String#interned.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from tools.jackson.core.sym.HashedMatcherBase:
_mask_names_offsets

Constructor Summary

AccessConstructor and Description
private
SimpleNameMatcher(Locale locale, String[] names, int[] offsets, int mask)

protected
protected

Method Summary

Modifier and TypeMethod and Description
public static SimpleNameMatcher

Returns:

Matcher constructed
construct
(Locale
Locale to use (relevant for case-insensitive matchers)
locale
,
List<String>
Names to match
propertyNames
)

Factory method for constructing case-sensitive matcher that only supports matching from `String`.

public static SimpleNameMatcher
constructCaseInsensitive(Locale locale, List<Named> propertyNames, boolean alreadyInterned)

public static SimpleNameMatcher
public static SimpleNameMatcher

Returns:

Matcher constructed
constructFrom
(Locale
Locale to use (relevant for case-insensitive matchers)
locale
,
List<Named>
Names to match
propertyNames
,
boolean
Whether underlying Strings have been String.intern()ed or not
alreadyInterned
)

Factory method for constructing case-sensitive matcher that only supports matching from `String`.

public int
public int
public int
matchByQuad(int q1, int q2, int q3)

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

public int
Inherited from tools.jackson.core.sym.HashedMatcherBase:
_matchSpillmatchNamesecondaryCountspillCount

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.core.sym.HashedMatcherBase.serialVersionUID.

Constructor Detail

SimpleNameMatcherback to summary
private SimpleNameMatcher(Locale locale, String[] names, int[] offsets, int mask)
SimpleNameMatcherback to summary
protected SimpleNameMatcher(SimpleNameMatcher base, String[] nameLookup)
SimpleNameMatcherback to summary
protected SimpleNameMatcher(SimpleNameMatcher primary, SimpleNameMatcher secondary)

Method Detail

constructback to summary
public static SimpleNameMatcher construct(Locale locale, List<String> propertyNames)

Factory method for constructing case-sensitive matcher that only supports matching from `String`.

Parameters
locale:Locale

Locale to use (relevant for case-insensitive matchers)

propertyNames:List<String>

Names to match

Returns:SimpleNameMatcher

Matcher constructed

constructCaseInsensitiveback to summary
public static SimpleNameMatcher constructCaseInsensitive(Locale locale, List<Named> propertyNames, boolean alreadyInterned)
constructCaseInsensitiveback to summary
public static SimpleNameMatcher constructCaseInsensitive(Locale locale, List<String> names)
constructFromback to summary
public static SimpleNameMatcher constructFrom(Locale locale, List<Named> propertyNames, boolean alreadyInterned)

Factory method for constructing case-sensitive matcher that only supports matching from `String`.

Parameters
locale:Locale

Locale to use (relevant for case-insensitive matchers)

propertyNames:List<Named>

Names to match

alreadyInterned:boolean

Whether underlying Strings have been String.intern()ed or not

Returns:SimpleNameMatcher

Matcher constructed

matchByQuadback to summary
public int matchByQuad(int q1)

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

Annotations
@Override
matchByQuadback to summary
public int matchByQuad(int q1, int q2)

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

Annotations
@Override
matchByQuadback to summary
public int matchByQuad(int q1, int q2, int q3)

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

Annotations
@Override
matchByQuadback to summary
public int matchByQuad(int[] q, int qlen)

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

Annotations
@Override