Class GosuParserFactoryImpl

    • Constructor Detail

      • GosuParserFactoryImpl

        public GosuParserFactoryImpl()
    • Method Detail

      • createParser

        public IGosuParser createParser​(java.lang.String strSource,
                                        ISymbolTable symTable,
                                        IScriptabilityModifier scriptabilityConstraint)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Specified by:
        createParser in interface IGosuParserFactory
        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 IGosuParser createParser​(java.lang.String strSource,
                                        ISymbolTable symTable,
                                        IScriptabilityModifier scriptabilityConstraint,
                                        ITypeUsesMap tuMap)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Specified by:
        createParser in interface IGosuParserFactory
        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 IGosuParser createParser​(ISymbolTable symTable,
                                        IScriptabilityModifier scriptabilityConstraint)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Specified by:
        createParser in interface IGosuParserFactory
        Parameters:
        symTable - The symbol table the parser uses to parse and execute script.
        Returns:
        A parser appropriate for parsing Gosu source.
      • createParser

        public IGosuParser createParser​(java.lang.String strSource,
                                        ISymbolTable symTable)
        Creates an IGosuParser appropriate for parsing and executing Gosu.
        Specified by:
        createParser in interface IGosuParserFactory
        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 <T> T getInterface​(java.lang.Class<T> apiInterface)
        Description copied from interface: IPluginHost
        Provides an implementation of a specified interface.
        Specified by:
        getInterface in interface IPluginHost
        Returns:
        The implementation of the interface or null if unsupported.