Package gw.internal.gosu.parser
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 Summary
Fields Modifier and Type Field Description private boolean_bKeepSymbolTableInIssuesprivate ISymbolTable_symTableprivate IToken_token
-
Constructor Summary
Constructors Constructor Description StandardParserState(IParsedElement elt, java.lang.String src, boolean bKeepSymbolTableInIssues)StandardParserState(ISymbolTable symTable, SourceCodeTokenizer tokenizer, int offsetShift, int lineShift, boolean bKeepSymbolTableInIssues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollapseToken()Collapses the token captured by this parser state, if possibleISymbolTablegetSymbolTable()booleanisKeepSymbolTableInIssues()voidsetKeepSymbolTableInIssues(boolean keepSymbolTableInIssues)voidsetSymbolTable(ISymbolTable table)Set the symbol table at the moment of creation of this IParserState-
Methods inherited from class gw.internal.gosu.parser.LightweightParserState
cloneWithNewTokenStartAndTokenEnd, getLineNumber, getLineOffset, getSource, getTokenColumn, getTokenEnd, getTokenStart, init
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.parser.IParserState
cloneWithNewTokenStartAndTokenEnd, getLineNumber, getLineOffset, getSource, getTokenColumn, getTokenEnd, getTokenStart
-
-
-
-
Field Detail
-
_symTable
private ISymbolTable _symTable
-
_token
private IToken _token
-
_bKeepSymbolTableInIssues
private boolean _bKeepSymbolTableInIssues
-
-
Constructor Detail
-
StandardParserState
public StandardParserState(ISymbolTable symTable, SourceCodeTokenizer tokenizer, int offsetShift, int lineShift, boolean bKeepSymbolTableInIssues)
-
StandardParserState
public StandardParserState(IParsedElement elt, java.lang.String src, boolean bKeepSymbolTableInIssues)
-
-
Method Detail
-
getSymbolTable
public ISymbolTable getSymbolTable()
- Specified by:
getSymbolTablein interfaceIFullParserState- Returns:
- the symbol table at the moment of creation of the parser state
-
setSymbolTable
public void setSymbolTable(ISymbolTable table)
Description copied from interface:IFullParserStateSet the symbol table at the moment of creation of this IParserState- Specified by:
setSymbolTablein interfaceIFullParserState
-
collapseToken
public void collapseToken()
Description copied from interface:IFullParserStateCollapses the token captured by this parser state, if possible- Specified by:
collapseTokenin interfaceIFullParserState
-
isKeepSymbolTableInIssues
public boolean isKeepSymbolTableInIssues()
- Specified by:
isKeepSymbolTableInIssuesin interfaceIFullParserState- Returns:
- true if parse issues need to retain this state's symbol table (e.g. in an IDE)
-
setKeepSymbolTableInIssues
public void setKeepSymbolTableInIssues(boolean keepSymbolTableInIssues)
-
-