public final class PreCalculatedResultFactory extends Object implements JsonConvertible
| Constructor and Description |
|---|
PreCalculatedResultFactory(int nGroups,
boolean trackLastGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearIndices(TBitSet clearIndices) |
PreCalculatedResultFactory |
copy() |
int[] |
createArrayFromEnd(int end) |
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 |
getStart(int groupNr) |
int |
hashCode() |
void |
setEnd(int groupNr,
int value) |
void |
setLastGroup(int lastGroup) |
void |
setLength(int length) |
void |
setStart(int groupNr,
int value) |
JsonValue |
toJson() |
void |
updateIndices(TBitSet updateIndices,
int index) |
public PreCalculatedResultFactory(int nGroups,
boolean trackLastGroup)
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 setLastGroup(int lastGroup)
public void updateIndices(TBitSet updateIndices, int index)
public void clearIndices(TBitSet clearIndices)
public RegexResult createFromStart(int start)
public RegexResult createFromEnd(int end)
public int[] createArrayFromEnd(int end)
public JsonValue toJson()
toJson in interface JsonConvertible