Package org.eclipse.lemminx.dom.parser
Interface Scanner
-
- All Known Implementing Classes:
XMLScanner
public interface ScannerScanner API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScannerStategetScannerState()intgetTokenEnd()Ending offset position of the current tokenStringgetTokenError()intgetTokenLength()intgetTokenOffset()Starting offset position of the current tokenStringgetTokenText()TokenTypegetTokenType()booleanisTokenTextBlank()TokenTypescan()
-
-
-
Method Detail
-
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
-
-