Package gw.lang.parser
Class GosuParserFactory
java.lang.Object
gw.lang.parser.GosuParserFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IGosuClassParsercreateClassParser(IGosuParser parser) static IGosuFragmentParserstatic IGosuParsercreateParser(ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint) Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParsercreateParser(String strSource) static IGosuParsercreateParser(String strSource, ISymbolTable symTable) Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParsercreateParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint) Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParsercreateParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint, ITypeUsesMap tuMap) Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuProgramParserstatic <T> TgetInterface(Class<T> apiClass)
-
Constructor Details
-
GosuParserFactory
public GosuParserFactory()
-
-
Method Details
-
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 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 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 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 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
Creates an IGosuParser appropriate for parsing and executing Gosu.- 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
-
createClassParser
-
createProgramParser
-
createFragmentParser
-
getInterface
-