public class CompilationBuffer extends Object
TRegexCompiler.compile(RegexLanguage, RegexSource) )} and is supposed to reduce the
amount of allocations during automaton generation. It provides various "scratch-pad" buffers for
the creation of arrays of unknown size. When using these buffers, take extra care not to use them
in two places simultaneously! TRegexCompiler.compile(RegexLanguage, RegexSource) is
designed to be run single-threaded, but nested functions may still lead to "simultaneous" use of
these buffers.ObjectArrayBuffer,
ByteArrayBuffer,
ShortArrayBuffer| Constructor and Description |
|---|
CompilationBuffer(Encodings.Encoding encoding) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayBuffer |
getByteArrayBuffer() |
TBitSet |
getByteSizeBitSet() |
CodePointSetAccumulator |
getCodePointSetAccumulator1() |
CodePointSetAccumulator |
getCodePointSetAccumulator2() |
Encodings.Encoding |
getEncoding() |
IntRangesBuffer |
getIntRangesBuffer1() |
IntRangesBuffer |
getIntRangesBuffer2() |
IntRangesBuffer |
getIntRangesBuffer3() |
org.graalvm.collections.EconomicMap<DFACaptureGroupPartialTransition,DFACaptureGroupPartialTransition> |
getLazyTransitionDeduplicationMap() |
org.graalvm.collections.EconomicMap<CodePointSet,CharMatcher> |
getMatcherDeduplicationMap() |
<T> ObjectArrayBuffer<T> |
getObjectBuffer1() |
<T> ObjectArrayBuffer<T> |
getObjectBuffer2() |
<T> ObjectArrayBuffer<T> |
getObjectBuffer3() |
ShortArrayBuffer |
getShortArrayBuffer1() |
ShortArrayBuffer |
getShortArrayBuffer2() |
public CompilationBuffer(Encodings.Encoding encoding)
public Encodings.Encoding getEncoding()
public <T> ObjectArrayBuffer<T> getObjectBuffer1()
public <T> ObjectArrayBuffer<T> getObjectBuffer2()
public <T> ObjectArrayBuffer<T> getObjectBuffer3()
public ByteArrayBuffer getByteArrayBuffer()
public ShortArrayBuffer getShortArrayBuffer1()
public ShortArrayBuffer getShortArrayBuffer2()
public IntRangesBuffer getIntRangesBuffer1()
public IntRangesBuffer getIntRangesBuffer2()
public IntRangesBuffer getIntRangesBuffer3()
public CodePointSetAccumulator getCodePointSetAccumulator1()
public CodePointSetAccumulator getCodePointSetAccumulator2()
public TBitSet getByteSizeBitSet()
public org.graalvm.collections.EconomicMap<CodePointSet,CharMatcher> getMatcherDeduplicationMap()
public org.graalvm.collections.EconomicMap<DFACaptureGroupPartialTransition,DFACaptureGroupPartialTransition> getLazyTransitionDeduplicationMap()