MCPcopy Create free account
hub / github.com/google/re2j / Frag

Class Frag

java/com/google/re2j/Compiler.java:24–46  ·  view source on GitHub ↗

A fragment of a compiled regular expression program. @see http://swtch.com/~rsc/regexp/regexp1.html

Source from the content-addressed store, hash-verified

22 * @see http://swtch.com/~rsc/regexp/regexp1.html
23 */
24 private static class Frag {
25 final int i; // an instruction address (pc).
26 int out; // a patch list; see explanation in Prog.java
27 boolean nullable; // whether the fragment can match the empty string
28
29 Frag() {
30 this(0, 0);
31 }
32
33 Frag(int i) {
34 this(i, 0);
35 }
36
37 Frag(int i, int out) {
38 this(i, out, false);
39 }
40
41 Frag(int i, int out, boolean nullable) {
42 this.i = i;
43 this.out = out;
44 this.nullable = nullable;
45 }
46 }
47
48 private final Prog prog = new Prog(); // Program being built
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…