Class RefasterJsScanner

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RefasterJsScanner
    extends Scanner
    Class that drives the RefasterJs refactoring by matching against a provided template JS file and then applying a transformation based off the template JS.
    See Also:
    Serialized Form
    • Constructor Detail

      • RefasterJsScanner

        public RefasterJsScanner()
    • Method Detail

      • loadRefasterJsTemplate

        public void loadRefasterJsTemplate​(java.lang.String refasterjsTemplate)
                                    throws java.io.IOException
        Loads the RefasterJs template. This must be called before the scanner is used.
        Throws:
        java.io.IOException
      • loadRefasterJsTemplateFromCode

        public void loadRefasterJsTemplateFromCode​(java.lang.String refasterJsTemplate)
                                            throws java.io.IOException
        Loads the RefasterJs template. This must be called before the scanner is used.
        Throws:
        java.io.IOException
      • clearTemplates

        public void clearTemplates()
        Clears the RefasterJs templates used for comparison. This function should be called if this class is going to be used with multiple Compiler objects since type comparison is dependent on the compiler used to generate the types.