Class GosuParserFactory


  • public class GosuParserFactory
    extends Object
    • Constructor Detail

      • GosuParserFactory

        public GosuParserFactory()
    • Method Detail

      • createParser

        public static IGosuParser createParser​(String strSource,
                                               ISymbolTable symTable,
                                               IScriptabilityModifier scriptabilityConstraint)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Parameters:
        strSource - The text of the the rule source
        symTable - The symbol table the parser uses to parse and execute the rule
        scriptabilityConstraint - Specifies the types of methods/properties that are visible
        Returns:
        A parser appropriate for parsing Gosu source.
      • createParser

        public static IGosuParser createParser​(String strSource,
                                               ISymbolTable symTable,
                                               IScriptabilityModifier scriptabilityConstraint,
                                               ITypeUsesMap tuMap)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Parameters:
        strSource - The text of the the rule source
        symTable - The symbol table the parser uses to parse and execute the rule
        scriptabilityConstraint - Specifies the types of methods/properties that are visible
        Returns:
        A parser appropriate for parsing Gosu source.
      • createParser

        public static IGosuParser createParser​(ISymbolTable symTable,
                                               IScriptabilityModifier scriptabilityConstraint)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Parameters:
        symTable - The symbol table the parser uses to parse and execute script.
        Returns:
        A parser appropriate for parsing Gosu source.
      • createParser

        public static IGosuParser createParser​(String strSource,
                                               ISymbolTable symTable)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Parameters:
        strSource - The text of the the rule source
        symTable - The symbol table the parser uses to parse and execute the rule
        Returns:
        A parser appropriate for parsing Gosu source.
      • getInterface

        public static <T> T getInterface​(Class<T> apiClass)