| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.util.function.BiFunction<Document,Reference,Tree> |
constructor
The constructor of the resultant tree.
|
protected @Nullable java.util.function.BiConsumer<Tree,Reference>[] |
constructors
The tree constructors.
|
protected @NotNull java.util.regex.Pattern |
pattern
The pattern.
|
| Constructor and Description |
|---|
PatternGroupParser(@NotNull java.util.regex.Pattern pattern,
@NotNull java.util.function.BiFunction<Document,Reference,Tree> constructor,
java.util.function.BiConsumer<Tree,Reference>... constructors)
Construct a new group parser that uses the given
pattern and the given
constructors. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Set<Tree> |
parse(@NotNull Compilation compilation,
@NotNull Tree tree)
Parse the given
sketch with respect to the given compilation. |
@NotNull protected final @NotNull java.util.function.BiFunction<Document,Reference,Tree> constructor
@Nullable protected final @Nullable java.util.function.BiConsumer<Tree,Reference>[] constructors
@NotNull protected final @NotNull java.util.regex.Pattern pattern
@SafeVarargs
public PatternGroupParser(@NotNull
@NotNull java.util.regex.Pattern pattern,
@NotNull
@NotNull java.util.function.BiFunction<Document,Reference,Tree> constructor,
@Nullable
java.util.function.BiConsumer<Tree,Reference>... constructors)
pattern and the given
constructors.pattern - the pattern detecting the groups.constructor - the constructor of the resultant tree.constructors - the trees constructors.java.lang.NullPointerException - if the given pattern or constructors
is null.@NotNull public @NotNull java.util.Set<Tree> parse(@NotNull @NotNull Compilation compilation, @NotNull @NotNull Tree tree)
Parsersketch with respect to the given compilation.