Top Fields Constructors Methods
org.joni

pack-priv abstract Class StackMachine

extends Matcher
implements StackType
Class Inheritance
All Implemented Interfaces
org.joni.constants.internal.StackType
Known Direct Subclasses
org.joni.ByteCodeMachine
Static Imports
org.joni.BitStatus.bsAt, .Config.USE_CEC

Field Summary

Modifier and TypeField and Description
protected static final int
protected final int
protected final int
protected final int[]
protected StackEntry[]
pack-priv static final ThreadLocal<WeakReference<StackEntry[]>>
private static final int
protected byte[]
protected int
protected int
Inherited from org.joni.Matcher:
bytesencendFAILEDhighINTERRUPTEDINTERRUPTED_EXCEPTIONlowmsaBeginmsaBestLenmsaBestSmsaEndmsaGposmsaOptionsmsaRegionmsaStartregexstartTimestrtimeoutTIMEOUT_EXCEPTION

Constructor Summary

AccessConstructor and Description
protected
StackMachine(Regex regex, Region region, byte[] bytes, int p, int end)

Method Summary

Modifier and TypeMethod and Description
private static StackEntry[]
private void
private final StackEntry
private static StackEntry[]
protected final int
getMemStart(int mnum)

protected final int
getRepeat(int id)

protected final int
nullCheck(int id, int s)

protected final int
nullCheckMemSt(int id, int s)

protected final int
nullCheckMemStRec(int id, int s)

protected final int
nullCheckRec(int id, int s)

protected final StackEntry
pop()

private StackEntry
private StackEntry
private StackEntry
protected final void
private void
protected final void
protected final void
protected final void
protected final int
private void
push(int type, int pat, int s, int prev, int pkeep)

protected final void
protected final void
pushAbsentPos(int start, int end)

protected final void
pushAlt(int pat, int s, int prev, int pkeep)

protected final void
pushAltWithStateCheck(int pat, int s, int sprev, int snum, int pkeep)

protected final void
pushCallFrame(int pat)

private final void
pushEnsured(int type, int pat)

protected final void
pushLookBehindNot(int pat, int s, int sprev, int pkeep)

protected final void
pushMemEnd(int mnum, int s)

protected final void
pushMemEndMark(int mnum)

protected final void
pushMemStart(int mnum, int s)

protected final void
pushNullCheckEnd(int cnum)

protected final void
pushNullCheckStart(int cnum, int s)

protected final void
pushPos(int s, int prev, int pkeep)

protected final void
pushPosNot(int pat, int s, int prev, int pkeep)

protected final void
pushRepeat(int id, int pat)

protected final void
pushRepeatInc(int sindex)

protected final void
protected final void
pushStateCheck(int s, int snum)

protected final void
private final void
pushType(int type)

protected final int
protected final void
protected final void
protected final void
stateCheckBuffInit(int strLength, int offset, int stateNum)

Implements abstract org.joni.Matcher.stateCheckBuffInit.

private void
private int
stateCheckPos(int s, int snum)

protected final boolean
stateCheckVal(int s, int snum)

protected final void
Inherited from org.joni.Matcher:
debugSearchgetBegingetEagerRegiongetEndgetRegionicbufinterruptisMbcAsciiWordmatchmatchAtmatchInterruptiblemsaInitsearchsearchsearchInterruptiblesearchInterruptiblesetTimeout

Field Detail

INVALID_INDEXback to summary
protected static final int INVALID_INDEX
memEndStkback to summary
protected final int memEndStk
memStartStkback to summary
protected final int memStartStk
repeatStkback to summary
protected final int[] repeatStk
stackback to summary
protected StackEntry[] stack
stacksback to summary
pack-priv static final ThreadLocal<WeakReference<StackEntry[]>> stacks
STATE_CHECK_BUFF_MALLOC_THRESHOLD_SIZEback to summary
private static final int STATE_CHECK_BUFF_MALLOC_THRESHOLD_SIZE
stateCheckBuffback to summary
protected byte[] stateCheckBuff
stateCheckBuffSizeback to summary
protected int stateCheckBuffSize
stkback to summary
protected int stk

Constructor Detail

StackMachineback to summary
protected StackMachine(Regex regex, Region region, byte[] bytes, int p, int end)

Method Detail

allocateStackback to summary
private static StackEntry[] allocateStack()
doubleStackback to summary
private void doubleStack()
ensure1back to summary
private final StackEntry ensure1()
fetchStackback to summary
private static StackEntry[] fetchStack()
getMemStartback to summary
protected final int getMemStart(int mnum)
getRepeatback to summary
protected final int getRepeat(int id)
nullCheckback to summary
protected final int nullCheck(int id, int s)
nullCheckMemStback to summary
protected final int nullCheckMemSt(int id, int s)
nullCheckMemStRecback to summary
protected final int nullCheckMemStRec(int id, int s)
nullCheckRecback to summary
protected final int nullCheckRec(int id, int s)
popback to summary
protected final StackEntry pop()
popDefaultback to summary
private StackEntry popDefault()
popFreeback to summary
private StackEntry popFree()
popMemStartback to summary
private StackEntry popMemStart()
popOneback to summary
protected final void popOne()
popRewriteback to summary
private void popRewrite(StackEntry e)
popTilAbsentback to summary
protected final void popTilAbsent()
popTilLookBehindNotback to summary
protected final void popTilLookBehindNot()
popTilPosNotback to summary
protected final void popTilPosNot()
posEndback to summary
protected final int posEnd()
pushback to summary
private void push(int type, int pat, int s, int prev, int pkeep)
pushAbsentback to summary
protected final void pushAbsent()
pushAbsentPosback to summary
protected final void pushAbsentPos(int start, int end)
pushAltback to summary
protected final void pushAlt(int pat, int s, int prev, int pkeep)
pushAltWithStateCheckback to summary
protected final void pushAltWithStateCheck(int pat, int s, int sprev, int snum, int pkeep)
pushCallFrameback to summary
protected final void pushCallFrame(int pat)
pushEnsuredback to summary
private final void pushEnsured(int type, int pat)
pushLookBehindNotback to summary
protected final void pushLookBehindNot(int pat, int s, int sprev, int pkeep)
pushMemEndback to summary
protected final void pushMemEnd(int mnum, int s)
pushMemEndMarkback to summary
protected final void pushMemEndMark(int mnum)
pushMemStartback to summary
protected final void pushMemStart(int mnum, int s)
pushNullCheckEndback to summary
protected final void pushNullCheckEnd(int cnum)
pushNullCheckStartback to summary
protected final void pushNullCheckStart(int cnum, int s)
pushPosback to summary
protected final void pushPos(int s, int prev, int pkeep)
pushPosNotback to summary
protected final void pushPosNot(int pat, int s, int prev, int pkeep)
pushRepeatback to summary
protected final void pushRepeat(int id, int pat)
pushRepeatIncback to summary
protected final void pushRepeatInc(int sindex)
pushReturnback to summary
protected final void pushReturn()
pushStateCheckback to summary
protected final void pushStateCheck(int s, int snum)
pushStopBTback to summary
protected final void pushStopBT()
pushTypeback to summary
private final void pushType(int type)
sreturnback to summary
protected final int sreturn()
stackInitback to summary
protected final void stackInit()
stateCheckBuffClearback to summary
protected final void stateCheckBuffClear()

Implements abstract org.joni.Matcher.stateCheckBuffClear.

Annotations
@Override
stateCheckBuffInitback to summary
protected final void stateCheckBuffInit(int strLength, int offset, int stateNum)

Implements abstract org.joni.Matcher.stateCheckBuffInit.

Annotations
@Override
stateCheckMarkback to summary
private void stateCheckMark()
stateCheckPosback to summary
private int stateCheckPos(int s, int snum)
stateCheckValback to summary
protected final boolean stateCheckVal(int s, int snum)
stopBtEndback to summary
protected final void stopBtEnd()