public final class ReplaceStringParser<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ReplaceStringParser.CaptureGroupToken |
static interface |
ReplaceStringParser.Consumer<T,R> |
static class |
ReplaceStringParser.LiteralToken |
static class |
ReplaceStringParser.NamedCaptureGroupToken |
static class |
ReplaceStringParser.Token |
| Modifier and Type | Method and Description |
|---|---|
static ReplaceStringParser.Token[] |
parse(JSContext context,
com.oracle.truffle.api.strings.TruffleString replaceStr,
int maxGroupNumber,
boolean parseNamedCaptureGroups) |
static <T,R> R |
process(JSContext context,
com.oracle.truffle.api.strings.TruffleString replaceStr,
int maxGroupNumber,
boolean parseNamedCaptureGroups,
ReplaceStringParser.Consumer<T,R> consumer,
T node,
com.oracle.truffle.api.nodes.Node profileNode,
com.oracle.truffle.api.profiles.InlinedBranchProfile hasDollarBranch) |
void |
process(ReplaceStringParser.Consumer<T,?> consumer,
T node,
com.oracle.truffle.api.nodes.Node profileNode,
com.oracle.truffle.api.profiles.InlinedBranchProfile hasDollarBranch,
JSContext context) |
static <T,R> R |
processParsed(ReplaceStringParser.Token[] tokens,
ReplaceStringParser.Consumer<T,R> consumer,
T node) |
public static <T,R> R process(JSContext context, com.oracle.truffle.api.strings.TruffleString replaceStr, int maxGroupNumber, boolean parseNamedCaptureGroups, ReplaceStringParser.Consumer<T,R> consumer, T node, com.oracle.truffle.api.nodes.Node profileNode, com.oracle.truffle.api.profiles.InlinedBranchProfile hasDollarBranch)
public static ReplaceStringParser.Token[] parse(JSContext context, com.oracle.truffle.api.strings.TruffleString replaceStr, int maxGroupNumber, boolean parseNamedCaptureGroups)
public static <T,R> R processParsed(ReplaceStringParser.Token[] tokens, ReplaceStringParser.Consumer<T,R> consumer, T node)
public void process(ReplaceStringParser.Consumer<T,?> consumer, T node, com.oracle.truffle.api.nodes.Node profileNode, com.oracle.truffle.api.profiles.InlinedBranchProfile hasDollarBranch, JSContext context)