Class AdvancedScriptParsing


  • public class AdvancedScriptParsing
    extends AbstractParsing
    For parsing AbstractAdvancedScript derived options.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • AdvancedScriptParsing

        public AdvancedScriptParsing()
    • Method Detail

      • toString

        public static String toString​(AbstractOption option,
                                      Object object)
        Returns the script as string.
        Parameters:
        option - the current option
        object - the Compound object to convert
        Returns:
        the generated string
      • valueOf

        public static Object valueOf​(Class cls,
                                     String str)
        Returns a script object generated from the string.
        Parameters:
        cls - the script class
        str - the string to convert to a Compound
        Returns:
        the generated Compound
      • valueOf

        public static Object valueOf​(AbstractOption option,
                                     String str)
        Returns a script object generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to a Compound
        Returns:
        the generated Compound