public class RuleMatcher extends Object
| Constructor and Description |
|---|
RuleMatcher(SrxDocument document,
Rule rule,
CharSequence text)
Creates matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
find()
Finds next rule match after previously found.
|
boolean |
find(int start)
Finds next rule match after given start position.
|
int |
getBreakPosition() |
int |
getEndPosition() |
Rule |
getRule() |
int |
getStartPosition() |
boolean |
hitEnd() |
public RuleMatcher(SrxDocument document, Rule rule, CharSequence text)
rule - rule which will be searched in the texttext - public boolean find()
public boolean find(int start)
start - start positionpublic boolean hitEnd()
public int getStartPosition()
public int getBreakPosition()
public int getEndPosition()
public Rule getRule()
Copyright © 2018. All Rights Reserved.