Package org.pcre4j
Class Pcre2CompileContext
java.lang.Object
org.pcre4j.Pcre2CompileContext
-
Constructor Summary
ConstructorsConstructorDescriptionPcre2CompileContext(org.pcre4j.api.IPcre2 api, Pcre2GeneralContext generalContext) Create a new compile contextPcre2CompileContext(Pcre2GeneralContext generalContext) Create a new compile context -
Method Summary
Modifier and TypeMethodDescriptionorg.pcre4j.api.IPcre2api()Get the PCRE2 API backing this compile contextlonghandle()Get the handle of the compile contextvoidsetNewline(Pcre2Newline newline) Set the newline convention
-
Constructor Details
-
Pcre2CompileContext
Create a new compile context- Parameters:
generalContext- the general context to use ornullto use the default context
-
Pcre2CompileContext
Create a new compile context- Parameters:
api- the PCRE2 API to usegeneralContext- the general context to use ornullto use the default context
-
-
Method Details
-
api
public org.pcre4j.api.IPcre2 api()Get the PCRE2 API backing this compile context- Returns:
- the PCRE2 API
-
handle
public long handle()Get the handle of the compile context- Returns:
- the handle of the compile context
-
setNewline
Set the newline convention- Parameters:
newline- the newline convention
-