Class Matcher
java.lang.Object
org.jcodings.IntHolder
org.joni.Matcher
public abstract class Matcher
extends org.jcodings.IntHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final org.jcodings.Encodingprotected final intstatic final intstatic final intprotected intprotected intprotected intprotected intprotected intprotected intprotected final Regionprotected intprotected final Regexprotected final intFields inherited from class org.jcodings.IntHolder
value -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetBegin()final Regionfinal intgetEnd()final Regionprotected final byte[]icbuf()abstract voidfinal intmatch(int at, int range, int option) protected abstract intmatchAt(int range, int sstart, int sprev, boolean interrupt) final intmatchInterruptible(int at, int range, int option) protected final voidmsaInit(int option, int start, int gpos) final intsearch(int start, int range, int option) final intsearch(int gpos, int start, int range, int option) final intsearchInterruptible(int start, int range, int option) final intsearchInterruptible(int gpos, int start, int range, int option) protected abstract voidprotected abstract voidstateCheckBuffInit(int strLength, int offset, int stateNum)
-
Field Details
-
FAILED
public static final int FAILED- See Also:
-
INTERRUPTED
public static final int INTERRUPTED- See Also:
-
regex
-
enc
protected final org.jcodings.Encoding enc -
bytes
protected final byte[] bytes -
str
protected final int str -
end
protected final int end -
msaStart
protected int msaStart -
msaOptions
protected int msaOptions -
msaRegion
-
msaBestLen
protected int msaBestLen -
msaBestS
protected int msaBestS -
msaGpos
protected int msaGpos -
msaBegin
protected int msaBegin -
msaEnd
protected int msaEnd
-
-
Method Details
-
matchAt
protected abstract int matchAt(int range, int sstart, int sprev, boolean interrupt) throws InterruptedException - Throws:
InterruptedException
-
stateCheckBuffInit
protected abstract void stateCheckBuffInit(int strLength, int offset, int stateNum) -
stateCheckBuffClear
protected abstract void stateCheckBuffClear() -
interrupt
public abstract void interrupt() -
getRegion
-
getEagerRegion
-
getBegin
public final int getBegin() -
getEnd
public final int getEnd() -
msaInit
protected final void msaInit(int option, int start, int gpos) -
match
public final int match(int at, int range, int option) -
matchInterruptible
- Throws:
InterruptedException
-
search
public final int search(int start, int range, int option) -
search
public final int search(int gpos, int start, int range, int option) -
searchInterruptible
- Throws:
InterruptedException
-
searchInterruptible
public final int searchInterruptible(int gpos, int start, int range, int option) throws InterruptedException - Throws:
InterruptedException
-
icbuf
protected final byte[] icbuf()
-