Instances are thread-safe. Multiple concurrent threads may perform matches on different character sequences at the same time.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | RawSubStringPattern(String
text to locate. This should be a literal string, as no
meta-characters are supported by this implementation. The
string may not be the empty string. patternText)Construct a new substring pattern. |
| Modifier and Type | Method and Description |
|---|---|
| private static final byte | |
| public int | Returns: offset withinrcs of the first occurrence of this
pattern; -1 if this pattern does not appear at any position of
rcs.the sequence to match. Must not be null but the length of the
sequence is permitted to be 0. rcs)Match a character sequence against this pattern. |
| private static final boolean | |
| public String | Returns: the pattern string given to our constructor.Get the literal pattern string this instance searches for. |
| public String |
| needle | back to summary |
|---|---|
| private final byte[] needle | |
| needleString | back to summary |
|---|---|
| private final String needleString | |
| RawSubStringPattern | back to summary |
|---|---|
| public RawSubStringPattern(String patternText) Construct a new substring pattern.
| |
| lc | back to summary |
|---|---|
| private static final byte lc(byte q) | |
| match | back to summary |
|---|---|
| public int match(RawCharSequence rcs) Match a character sequence against this pattern.
| |
| neq | back to summary |
|---|---|
| private static final boolean neq(byte a, byte b) | |
| pattern | back to summary |
|---|---|
| public String pattern() Get the literal pattern string this instance searches for.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |