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 Details

    • ParsePlugin

      public ParsePlugin()
  • Method Details

    • install

      public void install(org.teavm.vm.spi.TeaVMHost host)
      Specified by:
      install in interface org.teavm.vm.spi.TeaVMPlugin
    • transformClass

      public void transformClass(org.teavm.model.ClassHolder cls, org.teavm.model.ClassHolderTransformerContext context)
      Specified by:
      transformClass in interface org.teavm.model.ClassHolderTransformer