Package com.google.re2j
Class Machine
- java.lang.Object
-
- com.google.re2j.Machine
-
class Machine extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMachine.Queueprivate static classMachine.Thread
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Machine.Threadadd(Machine.Queue q, int pc, int pos, int[] cap, int cond, Machine.Thread t)private Machine.Threadalloc(Inst inst)private voidfree(Machine.Queue queue)private voidfree(Machine.Queue queue, int from)private voidfree(Machine.Thread t)(package private) voidinit(int ncap)private voidinitNewCap(int ncap)(package private) booleanmatch(MachineInput in, int pos, int anchor)private voidresetCap(int ncap)private voidstep(Machine.Queue runq, Machine.Queue nextq, int pos, int nextPos, int c, int nextCond, int anchor, boolean atEnd)(package private) int[]submatches()
-
-
-
Field Detail
-
re2
private RE2 re2
-
prog
private final Prog prog
-
q0
private final Machine.Queue q0
-
q1
private final Machine.Queue q1
-
pool
private Machine.Thread[] pool
-
poolSize
private int poolSize
-
matched
private boolean matched
-
matchcap
private int[] matchcap
-
ncap
private int ncap
-
next
Machine next
-
-
Method Detail
-
init
void init(int ncap)
-
resetCap
private void resetCap(int ncap)
-
initNewCap
private void initNewCap(int ncap)
-
submatches
int[] submatches()
-
alloc
private Machine.Thread alloc(Inst inst)
-
free
private void free(Machine.Queue queue)
-
free
private void free(Machine.Queue queue, int from)
-
free
private void free(Machine.Thread t)
-
match
boolean match(MachineInput in, int pos, int anchor)
-
step
private void step(Machine.Queue runq, Machine.Queue nextq, int pos, int nextPos, int c, int nextCond, int anchor, boolean atEnd)
-
add
private Machine.Thread add(Machine.Queue q, int pc, int pos, int[] cap, int cond, Machine.Thread t)
-
-