A fragment of a compiled regular expression program. @see http://swtch.com/~rsc/regexp/regexp1.html
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…