Package org.eclipse.lemminx.dom.parser
Interface Scanner
- All Known Implementing Classes:
XMLScanner
public interface Scanner
Scanner API.
-
Method Summary
Modifier and TypeMethodDescriptionintEnding offset position of the current tokenintintStarting offset position of the current tokenbooleanscan()
-
Method Details
-
scan
TokenType scan() -
getTokenType
TokenType getTokenType() -
getTokenOffset
int getTokenOffset()Starting offset position of the current token- Returns:
- int of token's start offset
-
getTokenLength
int getTokenLength() -
getTokenEnd
int getTokenEnd()Ending offset position of the current token- Returns:
- int of token's end offset
-
getTokenText
String getTokenText() -
getTokenError
String getTokenError() -
getScannerState
ScannerState getScannerState() -
isTokenTextBlank
boolean isTokenTextBlank()- Returns:
- True if the token's Text is empty or all whitespace
-