Package dev.gmitch215.bytebox.regex
Class Substitutions
java.lang.Object
org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
dev.gmitch215.bytebox.regex.Substitutions
- All Implemented Interfaces:
org.teavm.extension.spi.substitution.SubstitutionPolicy
public final class Substitutions
extends org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
Points
java.util.regex.Pattern and Matcher at the ones in this package.
Found through META-INF/services, which is how the compiler's own class library registers
its substitutions. The class library has a full pattern compiler and matcher, and they measure 68 KB
of WebAssembly after compression to do what the isolate can already do.
MatchResult and PatternSyntaxException are left alone: the first is an interface the
matcher implements, and the second already has a usable constructor.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(org.teavm.extension.spi.substitution.SubstitutionSink sink) Methods inherited from class org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
inPackage, inPackage, named, namePattern, not
-
Constructor Details
-
Substitutions
public Substitutions()
-
-
Method Details
-
contribute
public void contribute(org.teavm.extension.spi.substitution.SubstitutionSink sink)
-