Package com.sonar.sslr.impl.channel
Class UnknownCharacterChannel
- java.lang.Object
-
- org.sonar.sslr.channel.Channel<Lexer>
-
- com.sonar.sslr.impl.channel.UnknownCharacterChannel
-
public class UnknownCharacterChannel extends Channel<Lexer>
Creates token with typeGenericTokenType.UNKNOWN_CHAR
for any character. This channel, if present, should be the last one.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description UnknownCharacterChannel()
UnknownCharacterChannel(boolean shouldLogWarning)
Deprecated.logging removed in 1.20, useUnknownCharacterChannel()
or implement your own Channel with logging
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
consume(CodeReader code, Lexer lexer)
Tries to consume the character stream at the current reading cursor position (provided by theCodeReader
).
-
-
-
Constructor Detail
-
UnknownCharacterChannel
public UnknownCharacterChannel()
-
UnknownCharacterChannel
@Deprecated public UnknownCharacterChannel(boolean shouldLogWarning)
Deprecated.logging removed in 1.20, useUnknownCharacterChannel()
or implement your own Channel with logging
-
-
Method Detail
-
consume
public boolean consume(CodeReader code, Lexer lexer)
Description copied from class:Channel
Tries 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.
-
-