Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xpath.regex

public Class BMPattern

extends Object
Class Inheritance
Imports
java.text.CharacterIterator

Boyer-Moore searcher.

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final char[]
pack-priv final int[]

Constructor Summary

AccessConstructor and Description
public
BMPattern(String pat, boolean ignoreCase)

public
BMPattern(String pat, int tableSize, boolean ignoreCase)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

-1 if iterator does not contain this pattern.
matches
(CharacterIterator iterator, int start, int limit)

public int

Returns:

-1 if str does not contain this pattern.
matches
(String str, int start, int limit)

public int

Returns:

-1 if chars does not contain this pattern.
matches
(char[] chars, int start, int limit)

pack-priv int
matchesIgnoreCase(CharacterIterator iterator, int start, int limit)

pack-priv int
matchesIgnoreCase(String text, int start, int limit)

pack-priv int
matchesIgnoreCase(char[] chars, int start, int limit)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ignoreCaseback to summary
pack-priv final boolean ignoreCase
patternback to summary
pack-priv final char[] pattern
shiftTableback to summary
pack-priv final int[] shiftTable

Constructor Detail

BMPatternback to summary
public BMPattern(String pat, boolean ignoreCase)
BMPatternback to summary
public BMPattern(String pat, int tableSize, boolean ignoreCase)

Method Detail

matchesback to summary
public int matches(CharacterIterator iterator, int start, int limit)
Returns:int

-1 if iterator does not contain this pattern.

matchesback to summary
public int matches(String str, int start, int limit)
Returns:int

-1 if str does not contain this pattern.

matchesback to summary
public int matches(char[] chars, int start, int limit)
Returns:int

-1 if chars does not contain this pattern.

matchesIgnoreCaseback to summary
pack-priv int matchesIgnoreCase(CharacterIterator iterator, int start, int limit)
matchesIgnoreCaseback to summary
pack-priv int matchesIgnoreCase(String text, int start, int limit)
matchesIgnoreCaseback to summary
pack-priv int matchesIgnoreCase(char[] chars, int start, int limit)