Package gw.internal.gosu.parser
Class GosuParserFactoryImpl
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.parser.GosuParserFactoryImpl
-
- All Implemented Interfaces:
IService,IGosuParserFactory,IPluginHost
public class GosuParserFactoryImpl extends BaseService implements IGosuParserFactory
Defines a factory for constructing concrete IGosuParser implementations.
-
-
Constructor Summary
Constructors Constructor Description GosuParserFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IGosuClassParsercreateClassParser(IGosuParser parser)IGosuFragmentParsercreateFragmentParser()IGosuParsercreateParser(ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint)Creates an IGosuParser appropriate for parsing and executing Gosu.IGosuParsercreateParser(String strSource)IGosuParsercreateParser(String strSource, ISymbolTable symTable)Creates an IGosuParser appropriate for parsing and executing Gosu.IGosuParsercreateParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint)Creates an IGosuParser appropriate for parsing and executing Gosu.IGosuParsercreateParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint, ITypeUsesMap tuMap)Creates an IGosuParser appropriate for parsing and executing Gosu.IGosuProgramParsercreateProgramParser()<T> TgetInterface(Class<T> apiInterface)
-
-
-
Method Detail
-
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
public IGosuParser createParser(String strSource, ISymbolTable symTable)
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
public IGosuParser createParser(String strSource)
- Specified by:
createParserin interfaceIGosuParserFactory
-
createClassParser
public IGosuClassParser createClassParser(IGosuParser parser)
- Specified by:
createClassParserin interfaceIGosuParserFactory
-
createProgramParser
public IGosuProgramParser createProgramParser()
- Specified by:
createProgramParserin interfaceIGosuParserFactory
-
createFragmentParser
public IGosuFragmentParser createFragmentParser()
- Specified by:
createFragmentParserin interfaceIGosuParserFactory
-
getInterface
public <T> T getInterface(Class<T> apiInterface)
- Specified by:
getInterfacein interfaceIPluginHost
-
-