Package gw.internal.gosu.parser
Class GosuParserFactoryImpl
java.lang.Object
gw.config.BaseService
gw.internal.gosu.parser.GosuParserFactoryImpl
- All Implemented Interfaces:
IService,IGosuParserFactory,IPluginHost
Defines a factory for constructing concrete IGosuParser implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClassParser(IGosuParser parser) createParser(ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint) Creates an IGosuParser appropriate for parsing and executing Gosu.createParser(String strSource) createParser(String strSource, ISymbolTable symTable) Creates an IGosuParser appropriate for parsing and executing Gosu.createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint) Creates an IGosuParser appropriate for parsing and executing Gosu.createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint, ITypeUsesMap tuMap) Creates an IGosuParser appropriate for parsing and executing Gosu.<T> TgetInterface(Class<T> apiInterface) Provides an implementation of a specified interface.
-
Constructor Details
-
GosuParserFactoryImpl
public GosuParserFactoryImpl()
-
-
Method Details
-
createParser
public IGosuParser createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint) Creates an IGosuParser appropriate for parsing and executing Gosu.- Specified by:
createParserin interfaceIGosuParserFactory- Parameters:
strSource- The text of the the rule sourcesymTable- The symbol table the parser uses to parse and execute the rulescriptabilityConstraint- Specifies the types of methods/properties that are visible- Returns:
- A parser appropriate for parsing Gosu source.
-
createParser
public IGosuParser createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint, ITypeUsesMap tuMap) Creates an IGosuParser appropriate for parsing and executing Gosu.- Specified by:
createParserin interfaceIGosuParserFactory- Parameters:
strSource- The text of the the rule sourcesymTable- The symbol table the parser uses to parse and execute the rulescriptabilityConstraint- 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:
createParserin interfaceIGosuParserFactory- Parameters:
symTable- The symbol table the parser uses to parse and execute script.- Returns:
- A parser appropriate for parsing Gosu source.
-
createParser
Creates an IGosuParser appropriate for parsing and executing Gosu.- Specified by:
createParserin interfaceIGosuParserFactory- Parameters:
strSource- The text of the the rule sourcesymTable- The symbol table the parser uses to parse and execute the rule- Returns:
- A parser appropriate for parsing Gosu source.
-
createParser
- Specified by:
createParserin interfaceIGosuParserFactory
-
createClassParser
- Specified by:
createClassParserin interfaceIGosuParserFactory
-
createProgramParser
- Specified by:
createProgramParserin interfaceIGosuParserFactory
-
createFragmentParser
- Specified by:
createFragmentParserin interfaceIGosuParserFactory
-
getInterface
Description copied from interface:IPluginHostProvides an implementation of a specified interface.- Specified by:
getInterfacein interfaceIPluginHost- Returns:
- The implementation of the interface or null if unsupported.
-