Class GosuParserFactory

java.lang.Object
gw.lang.parser.GosuParserFactory

public class GosuParserFactory extends Object
  • 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 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 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 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 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 source
      symTable - 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)