public abstract class Matcher
extends org.jcodings.IntHolder
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected org.jcodings.Encoding |
enc |
protected int |
end |
static int |
FAILED |
(package private) int |
high |
static int |
INTERRUPTED |
(package private) int |
low |
protected int |
msaBegin |
protected int |
msaBestLen |
protected int |
msaBestS |
protected int |
msaEnd |
protected int |
msaOptions |
protected Region |
msaRegion |
protected int |
msaStart |
protected Regex |
regex |
protected int |
str |
Constructor and Description |
---|
Matcher(Regex regex,
byte[] bytes) |
Matcher(Regex regex,
byte[] bytes,
int p,
int end) |
Modifier and Type | Method and Description |
---|---|
private boolean |
backwardSearchRange(byte[] bytes,
int str,
int end,
int s,
int range,
int adjrange) |
private boolean |
endBuf(int start,
int range,
int minSemiEnd,
int maxSemiEnd) |
private boolean |
forwardSearchRange(byte[] bytes,
int str,
int end,
int s,
int range,
org.jcodings.IntHolder lowPrev) |
int |
getBegin() |
Region |
getEagerRegion() |
int |
getEnd() |
Region |
getRegion() |
private int |
match(int s) |
int |
match(int at,
int range,
int option) |
protected abstract int |
matchAt(int range,
int sstart,
int sprev) |
private boolean |
matchCheck(int upperRange,
int s,
int prev) |
int |
matchInterruptible(int at,
int range,
int option) |
private int |
mismatch() |
protected void |
msaInit(int option,
int start) |
int |
search(int start,
int range,
int option) |
int |
searchInterruptible(int start,
int range,
int option) |
protected abstract void |
stateCheckBuffClear() |
protected abstract void |
stateCheckBuffInit(int strLength,
int offset,
int stateNum) |
public static final int FAILED
public static final int INTERRUPTED
protected final Regex regex
protected final org.jcodings.Encoding enc
protected final byte[] bytes
protected final int str
protected final int end
protected int msaStart
protected int msaOptions
protected final Region msaRegion
protected int msaBestLen
protected int msaBestS
protected int msaBegin
protected int msaEnd
int low
int high
public Matcher(Regex regex, byte[] bytes)
public Matcher(Regex regex, byte[] bytes, int p, int end)
protected abstract int matchAt(int range, int sstart, int sprev) throws InterruptedException
InterruptedException
protected abstract void stateCheckBuffInit(int strLength, int offset, int stateNum)
protected abstract void stateCheckBuffClear()
public final Region getRegion()
public final Region getEagerRegion()
public final int getBegin()
public final int getEnd()
protected final void msaInit(int option, int start)
public final int match(int at, int range, int option)
public final int matchInterruptible(int at, int range, int option) throws InterruptedException
InterruptedException
private boolean forwardSearchRange(byte[] bytes, int str, int end, int s, int range, org.jcodings.IntHolder lowPrev)
private boolean backwardSearchRange(byte[] bytes, int str, int end, int s, int range, int adjrange)
private boolean matchCheck(int upperRange, int s, int prev) throws InterruptedException
InterruptedException
public final int search(int start, int range, int option)
public final int searchInterruptible(int start, int range, int option) throws InterruptedException
InterruptedException
private boolean endBuf(int start, int range, int minSemiEnd, int maxSemiEnd)
private int match(int s)
private int mismatch()
Copyright © 2018. All rights reserved.