Class StandardParserState

java.lang.Object
gw.internal.gosu.parser.LightweightParserState
gw.internal.gosu.parser.StandardParserState
All Implemented Interfaces:
IFullParserState, IParserState

public class StandardParserState extends LightweightParserState implements IFullParserState
  • Field Details

    • _symTable

      private ISymbolTable _symTable
    • _token

      private IToken _token
    • _bKeepSymbolTableInIssues

      private boolean _bKeepSymbolTableInIssues
  • Constructor Details

    • StandardParserState

      public StandardParserState(ISymbolTable symTable, SourceCodeTokenizer tokenizer, int offsetShift, int lineShift, boolean bKeepSymbolTableInIssues)
    • StandardParserState

      public StandardParserState(IParsedElement elt, String src, boolean bKeepSymbolTableInIssues)
  • Method Details

    • getSymbolTable

      public ISymbolTable getSymbolTable()
      Specified by:
      getSymbolTable in interface IFullParserState
      Returns:
      the symbol table at the moment of creation of the parser state
    • setSymbolTable

      public void setSymbolTable(ISymbolTable table)
      Description copied from interface: IFullParserState
      Set the symbol table at the moment of creation of this IParserState
      Specified by:
      setSymbolTable in interface IFullParserState
    • collapseToken

      public void collapseToken()
      Description copied from interface: IFullParserState
      Collapses the token captured by this parser state, if possible
      Specified by:
      collapseToken in interface IFullParserState
    • isKeepSymbolTableInIssues

      public boolean isKeepSymbolTableInIssues()
      Specified by:
      isKeepSymbolTableInIssues in interface IFullParserState
      Returns:
      true if parse issues need to retain this state's symbol table (e.g. in an IDE)
    • setKeepSymbolTableInIssues

      public void setKeepSymbolTableInIssues(boolean keepSymbolTableInIssues)