Package gw.lang.parser
Class GosuParserFactory
- java.lang.Object
-
- gw.lang.parser.GosuParserFactory
-
public class GosuParserFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description GosuParserFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IGosuClassParser
createClassParser(IGosuParser parser)
static IGosuFragmentParser
createFragmentParser()
static IGosuParser
createParser(ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint)
Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParser
createParser(String strSource)
static IGosuParser
createParser(String strSource, ISymbolTable symTable)
Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParser
createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint)
Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuParser
createParser(String strSource, ISymbolTable symTable, IScriptabilityModifier scriptabilityConstraint, ITypeUsesMap tuMap)
Creates an IGosuParser appropriate for parsing and executing Gosu.static IGosuProgramParser
createProgramParser()
static <T> T
getInterface(Class<T> apiClass)
-
-
-
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 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
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 sourcesymTable
- The symbol table the parser uses to parse and execute the rule- Returns:
- A parser appropriate for parsing Gosu source.
-
createParser
public static IGosuParser createParser(String strSource)
-
createClassParser
public static IGosuClassParser createClassParser(IGosuParser parser)
-
createProgramParser
public static IGosuProgramParser createProgramParser()
-
createFragmentParser
public static IGosuFragmentParser createFragmentParser()
-
getInterface
public static <T> T getInterface(Class<T> apiClass)
-
-