Package dev.gmitch215.bytebox.text
Class Substitutions
java.lang.Object
org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
dev.gmitch215.bytebox.text.Substitutions
- All Implemented Interfaces:
org.teavm.extension.spi.substitution.SubstitutionPolicy
public final class Substitutions
extends org.teavm.extension.spi.substitution.SimpleSubstitutionPolicy
Points
java.util.Formatter and what it needs at the ones in this package.
Found through META-INF/services, which is how the compiler's own class library registers
its substitutions. String.format and printf both go through
java.util.Formatter, so replacing it is what makes them cost what they cost here.
IllegalFormatException comes along because its constructors are package-private in the
class library, so the two subclasses it is missing cannot be written anywhere else.
Formattable comes along because its one method takes a formatter.
- 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)
-