Package gw.internal.gosu.parser
Class LazyLightweightParserState
java.lang.Object
gw.internal.gosu.parser.LazyLightweightParserState
- All Implemented Interfaces:
IParserState
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLazyLightweightParserState(SourceCodeTokenizer tokenizer, int offsetShift, int lineShift) -
Method Summary
Modifier and TypeMethodDescriptioncloneWithNewTokenStartAndTokenEnd(int newTokenStart, int newLength) intintintintint
-
Field Details
-
_lazyState
-
-
Constructor Details
-
LazyLightweightParserState
-
-
Method Details
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceIParserState- Returns:
- the line number of this parser state
-
getTokenColumn
public int getTokenColumn()- Specified by:
getTokenColumnin interfaceIParserState- Returns:
- the column represented by this parser state
-
getSource
- Specified by:
getSourcein interfaceIParserState- Returns:
- the program source associated with this parser state
-
getTokenStart
public int getTokenStart()- Specified by:
getTokenStartin interfaceIParserState- Returns:
- the start of the token represented by this parser state
-
getTokenEnd
public int getTokenEnd()- Specified by:
getTokenEndin interfaceIParserState- Returns:
- the end of the token represented by this parser state
-
getLineOffset
public int getLineOffset()- Specified by:
getLineOffsetin interfaceIParserState- Returns:
- the starting line of this parser state
-
cloneWithNewTokenStartAndTokenEnd
- Specified by:
cloneWithNewTokenStartAndTokenEndin interfaceIParserState
-