Package com.sonar.sslr.impl.channel
Class UnknownCharacterChannel
Creates token with type
GenericTokenType.UNKNOWN_CHAR for any character.
This channel, if present, should be the last one.- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconsume(CodeReader code, Lexer lexer) Tries to consume the character stream at the current reading cursor position (provided by theCodeReader).
-
Constructor Details
-
UnknownCharacterChannel
public UnknownCharacterChannel() -
UnknownCharacterChannel
Deprecated.logging removed in 1.20, useUnknownCharacterChannel()or implement your own Channel with logging
-
-
Method Details
-
consume
Description copied from class:ChannelTries to consume the character stream at the current reading cursor position (provided by theCodeReader). If the character stream is consumed the method must return true and the OUTPUT object can be fed.
-
UnknownCharacterChannel()or implement your own Channel with logging