Class ByteCodeMachine
java.lang.Object
org.jcodings.IntHolder
org.joni.Matcher
org.joni.StackMachine
org.joni.ByteCodeMachine
- All Implemented Interfaces:
StackType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate byte[]private byte[]private final int[]private static final int(package private) intprivate intprivate intprivate intprivate intprivate intprivate intprotected intFields inherited from class StackMachine
INVALID_INDEX, memEndStk, memStartStk, repeatStk, stack, stacks, stateCheckBuff, stateCheckBuffSize, stkFields inherited from class Matcher
bytes, enc, end, FAILED, high, INTERRUPTED, low, msaBegin, msaBestLen, msaBestS, msaEnd, msaOptions, msaRegion, msaStart, regex, strFields inherited from class org.jcodings.IntHolder
valueFields inherited from interface StackType
ALT, CALL_FRAME, INVALID_STACK_INDEX, LOOK_BEHIND_NOT, MASK_MEM_END_OR_MARK, MASK_POP_USED, MASK_TO_VOID_TARGET, MEM_END, MEM_END_MARK, MEM_START, NULL_CHECK_END, NULL_CHECK_START, POS, POS_NOT, REPEAT, REPEAT_INC, RETURN, STATE_CHECK_MARK, STOP_BT, VOID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbackref(int mem) private intbackrefEnd(int mem) private booleanbackrefInvalid(int mem) private booleanbackrefMatchAtNestedLevel(boolean ignoreCase, int caseFoldFlag, int nest, int memNum, int memp) private intbackrefStart(int mem) protected final byte[]cfbuf()protected final byte[]cfbuf2()private voidcheckCaptureHistory(Region region) private voidprivate voidprivate booleanprivate intfinish()private booleanprivate booleanprivate booleanprivate booleanprotected final intmatchAt(int range, int sstart, int sprev) private booleanmemIsInMemp(int mem, int num, int memp) private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopCall()private voidopCClass()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate booleanopEnd()private voidopEndBuf()private voidprivate voidopExact1()private voidprivate voidprivate voidopExact2()private voidopExact3()private voidopExact4()private voidopExact5()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopExactN()private voidprivate voidprivate voidopFail()private voidprivate voidprivate voidopJump()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopPop()private voidopPopPos()private voidprivate voidopPush()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopRepeat()private voidprivate voidprivate voidprivate voidprivate voidprivate voidopReturn()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopWord()private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidopWordSb()private voidrepeatInc(int mem, int si) private voidrepeatIncNG(int mem, int si) private booleanstringCmpIC(int caseFlodFlag, int s1, org.jcodings.IntHolder ps2, int mbLen, int textEnd) Methods inherited from class StackMachine
ensure1, getMemStart, getRepeat, init, nullCheck, nullCheckMemSt, nullCheckMemStRec, nullCheckRec, pop, popOne, popTilLookBehindNot, popTilPosNot, posEnd, pushAlt, pushAltWithStateCheck, pushCallFrame, pushEnsured, pushLookBehindNot, pushMemEnd, pushMemEndMark, pushMemStart, pushNullCheckEnd, pushNullCheckStart, pushPos, pushPosNot, pushRepeat, pushRepeatInc, pushReturn, pushStateCheck, pushStopBT, pushType, sreturn, stateCheckBuffClear, stateCheckBuffInit, stateCheckVal, stopBtEndMethods inherited from class Matcher
getBegin, getEagerRegion, getEnd, getRegion, match, matchInterruptible, msaInit, search, searchInterruptible
-
Field Details
-
INTERRUPT_CHECK_EVERY
private static final int INTERRUPT_CHECK_EVERY- See Also:
-
interruptCheckCounter
int interruptCheckCounter -
bestLen
private int bestLen -
s
private int s -
range
private int range -
sprev
private int sprev -
sstart
private int sstart -
sbegin
private int sbegin -
code
private final int[] code -
ip
private int ip -
stkp
protected int stkp -
cfbuf
private byte[] cfbuf -
cfbuf2
private byte[] cfbuf2
-
-
Constructor Details
-
ByteCodeMachine
ByteCodeMachine(Regex regex, byte[] bytes, int p, int end)
-
-
Method Details
-
makeCaptureHistoryTree
-
checkCaptureHistory
-
cfbuf
protected final byte[] cfbuf() -
cfbuf2
protected final byte[] cfbuf2() -
stringCmpIC
private boolean stringCmpIC(int caseFlodFlag, int s1, org.jcodings.IntHolder ps2, int mbLen, int textEnd) -
debugMatchBegin
private void debugMatchBegin() -
debugMatchLoop
private void debugMatchLoop() -
matchAt
- Specified by:
matchAtin classMatcher- Throws:
InterruptedException
-
opEnd
private boolean opEnd() -
endBestLength
private boolean endBestLength() -
opExact1
private void opExact1() -
opExact2
private void opExact2() -
opExact3
private void opExact3() -
opExact4
private void opExact4() -
opExact5
private void opExact5() -
opExactN
private void opExactN() -
opExactMB2N1
private void opExactMB2N1() -
opExactMB2N2
private void opExactMB2N2() -
opExactMB2N3
private void opExactMB2N3() -
opExactMB2N
private void opExactMB2N() -
opExactMB3N
private void opExactMB3N() -
opExactMBN
private void opExactMBN() -
opExact1IC
private void opExact1IC() -
opExact1ICSb
private void opExact1ICSb() -
opExactNIC
private void opExactNIC() -
opExactNICSb
private void opExactNICSb() -
isInBitSet
private boolean isInBitSet() -
opCClass
private void opCClass() -
opCClassSb
private void opCClassSb() -
isInClassMB
private boolean isInClassMB() -
opCClassMB
private void opCClassMB() -
opCClassMIX
private void opCClassMIX() -
opCClassNot
private void opCClassNot() -
opCClassNotSb
private void opCClassNotSb() -
isNotInClassMB
private boolean isNotInClassMB() -
opCClassMBNot
private void opCClassMBNot() -
opCClassMIXNot
private void opCClassMIXNot() -
opCClassNode
private void opCClassNode() -
opAnyChar
private void opAnyChar() -
opAnyCharSb
private void opAnyCharSb() -
opAnyCharML
private void opAnyCharML() -
opAnyCharMLSb
private void opAnyCharMLSb() -
opAnyCharStar
private void opAnyCharStar() -
opAnyCharStarSb
private void opAnyCharStarSb() -
opAnyCharMLStar
private void opAnyCharMLStar() -
opAnyCharMLStarSb
private void opAnyCharMLStarSb() -
opAnyCharStarPeekNext
private void opAnyCharStarPeekNext() -
opAnyCharStarPeekNextSb
private void opAnyCharStarPeekNextSb() -
opAnyCharMLStarPeekNext
private void opAnyCharMLStarPeekNext() -
opAnyCharMLStarPeekNextSb
private void opAnyCharMLStarPeekNextSb() -
opStateCheckAnyCharStar
private void opStateCheckAnyCharStar() -
opStateCheckAnyCharStarSb
private void opStateCheckAnyCharStarSb() -
opStateCheckAnyCharMLStar
private void opStateCheckAnyCharMLStar() -
opStateCheckAnyCharMLStarSb
private void opStateCheckAnyCharMLStarSb() -
opWord
private void opWord() -
opWordSb
private void opWordSb() -
opNotWord
private void opNotWord() -
opNotWordSb
private void opNotWordSb() -
opWordBound
private void opWordBound() -
opWordBoundSb
private void opWordBoundSb() -
opNotWordBound
private void opNotWordBound() -
opNotWordBoundSb
private void opNotWordBoundSb() -
opWordBegin
private void opWordBegin() -
opWordBeginSb
private void opWordBeginSb() -
opWordEnd
private void opWordEnd() -
opWordEndSb
private void opWordEndSb() -
opBeginBuf
private void opBeginBuf() -
opEndBuf
private void opEndBuf() -
opBeginLine
private void opBeginLine() -
opEndLine
private void opEndLine() -
opSemiEndBuf
private void opSemiEndBuf() -
opBeginPosition
private void opBeginPosition() -
opMemoryStartPush
private void opMemoryStartPush() -
opMemoryStart
private void opMemoryStart() -
opMemoryEndPush
private void opMemoryEndPush() -
opMemoryEnd
private void opMemoryEnd() -
opMemoryEndPushRec
private void opMemoryEndPushRec() -
opMemoryEndRec
private void opMemoryEndRec() -
backrefInvalid
private boolean backrefInvalid(int mem) -
backrefStart
private int backrefStart(int mem) -
backrefEnd
private int backrefEnd(int mem) -
backref
private void backref(int mem) -
opBackRef1
private void opBackRef1() -
opBackRef2
private void opBackRef2() -
opBackRefN
private void opBackRefN() -
opBackRefNIC
private void opBackRefNIC() -
opBackRefMulti
private void opBackRefMulti() -
opBackRefMultiIC
private void opBackRefMultiIC() -
memIsInMemp
private boolean memIsInMemp(int mem, int num, int memp) -
backrefMatchAtNestedLevel
private boolean backrefMatchAtNestedLevel(boolean ignoreCase, int caseFoldFlag, int nest, int memNum, int memp) -
opBackRefAtLevel
private void opBackRefAtLevel() -
opSetOptionPush
private void opSetOptionPush() -
opSetOption
private void opSetOption() -
opNullCheckStart
private void opNullCheckStart() -
nullCheckFound
private void nullCheckFound() -
opNullCheckEnd
private void opNullCheckEnd() -
opNullCheckEndMemST
private void opNullCheckEndMemST() -
opNullCheckEndMemSTPush
private void opNullCheckEndMemSTPush() -
opJump
private void opJump() -
opPush
private void opPush() -
opStateCheckPush
private void opStateCheckPush() -
opStateCheckPushOrJump
private void opStateCheckPushOrJump() -
opStateCheck
private void opStateCheck() -
opPop
private void opPop() -
opPushOrJumpExact1
private void opPushOrJumpExact1() -
opPushIfPeekNext
private void opPushIfPeekNext() -
opRepeat
private void opRepeat() -
opRepeatNG
private void opRepeatNG() -
repeatInc
private void repeatInc(int mem, int si) -
opRepeatInc
private void opRepeatInc() -
opRepeatIncSG
private void opRepeatIncSG() -
repeatIncNG
private void repeatIncNG(int mem, int si) -
opRepeatIncNG
private void opRepeatIncNG() -
opRepeatIncNGSG
private void opRepeatIncNGSG() -
opPushPos
private void opPushPos() -
opPopPos
private void opPopPos() -
opPushPosNot
private void opPushPosNot() -
opFailPos
private void opFailPos() -
opPushStopBT
private void opPushStopBT() -
opPopStopBT
private void opPopStopBT() -
opLookBehind
private void opLookBehind() -
opLookBehindSb
private void opLookBehindSb() -
opPushLookBehindNot
private void opPushLookBehindNot() -
opFailLookBehindNot
private void opFailLookBehindNot() -
opCall
private void opCall() -
opReturn
private void opReturn() -
opFail
private void opFail() -
finish
private int finish()
-