public final class PreCalculatedResultFactory extends Object implements JsonConvertible
| Constructor and Description |
|---|
PreCalculatedResultFactory(int nGroups) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRelativeToEnd(int[] target,
int end) |
PreCalculatedResultFactory |
copy() |
RegexResult |
createFromEnd(int end) |
RegexResult |
createFromStart(int start) |
boolean |
equals(Object obj) |
int |
getEnd(int groupNr) |
int |
getLength()
Outermost bounds of the result, necessary for expressions where lookaround matches may exceed
the bounds of capture group 0.
|
int |
getNumberOfGroups() |
int |
getStart(int groupNr) |
int |
hashCode() |
void |
setEnd(int groupNr,
int value) |
void |
setLength(int length) |
void |
setStart(int groupNr,
int value) |
JsonValue |
toJson() |
void |
updateIndices(CompilationFinalBitSet updateIndices,
int index) |
public PreCalculatedResultFactory copy()
public int getStart(int groupNr)
public void setStart(int groupNr,
int value)
public int getEnd(int groupNr)
public void setEnd(int groupNr,
int value)
public int getLength()
public void setLength(int length)
public void updateIndices(CompilationFinalBitSet updateIndices, int index)
public RegexResult createFromStart(int start)
public RegexResult createFromEnd(int end)
public int getNumberOfGroups()
public void applyRelativeToEnd(int[] target,
int end)
public JsonValue toJson()
toJson in interface JsonConvertible