public class InnerLiteral extends Object
| Constructor and Description |
|---|
InnerLiteral(AbstractString literal,
AbstractString mask,
int maxPrefixSize) |
| Modifier and Type | Method and Description |
|---|---|
AbstractString |
getLiteral()
The literal string.
|
com.oracle.truffle.api.strings.TruffleString |
getLiteralContent() |
AbstractString |
getMask()
An optional mask for matching the string in ignore-case mode.
|
com.oracle.truffle.api.strings.TruffleString.WithMask |
getMaskContent() |
int |
getMaxPrefixSize()
The maximum number of code points the regular expression may match before matching this
literal.
|
public InnerLiteral(AbstractString literal, AbstractString mask, int maxPrefixSize)
public AbstractString getLiteral()
public com.oracle.truffle.api.strings.TruffleString getLiteralContent()
public AbstractString getMask()
public com.oracle.truffle.api.strings.TruffleString.WithMask getMaskContent()
public int getMaxPrefixSize()
/a?b/ is "b", with a max prefix size
of 1. If there are loops in the prefix, returns -1.