Package dev.gmitch215.bytebox.text
Class ParsePlugin
java.lang.Object
dev.gmitch215.bytebox.text.ParsePlugin
- All Implemented Interfaces:
org.teavm.model.ClassHolderTransformer,org.teavm.vm.spi.TeaVMPlugin
public final class ParsePlugin
extends Object
implements org.teavm.vm.spi.TeaVMPlugin, org.teavm.model.ClassHolderTransformer
Points
Double.parseDouble and Float.parseFloat at Parse.
Found through META-INF/services, by the compiler. A substitution renames a whole class,
and the class library's Double and Float cannot be renamed without losing the
natives the compiler gives them, so the two methods keep their class and take a new body.
- Since:
- 1.0.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinstall(org.teavm.vm.spi.TeaVMHost host) voidtransformClass(org.teavm.model.ClassHolder cls, org.teavm.model.ClassHolderTransformerContext context)
-
Constructor Details
-
ParsePlugin
public ParsePlugin()
-
-
Method Details
-
install
public void install(org.teavm.vm.spi.TeaVMHost host) - Specified by:
installin interfaceorg.teavm.vm.spi.TeaVMPlugin
-
transformClass
public void transformClass(org.teavm.model.ClassHolder cls, org.teavm.model.ClassHolderTransformerContext context) - Specified by:
transformClassin interfaceorg.teavm.model.ClassHolderTransformer
-