Class ScriptManager


  • public class ScriptManager
    extends Object
    • Constructor Detail

      • ScriptManager

        public ScriptManager​(JAXXCompiler compiler)
    • Method Detail

      • trimScript

        public String trimScript​(String script)
        Strips unnecessary curly braces from around the script, generating a warning if they are found.
        Parameters:
        script - script to trim
        Returns:
        the trimmed script
      • trimScript

        public String trimScript​(String script,
                                 boolean warn)
        Strips unnecessary curly braces from around the script, generating a warning if flag warn is on and they are found.
        Parameters:
        script - script to trim
        warn - flag to warn if curly braces are found
        Returns:
        the trimmed script