public class UnknownCharacterChannel extends Channel<Lexer>
GenericTokenType.UNKNOWN_CHAR
for any character.
This channel, if present, should be the last one.Constructor and Description |
---|
UnknownCharacterChannel() |
UnknownCharacterChannel(boolean shouldLogWarning)
Deprecated.
logging removed in 1.20, use
UnknownCharacterChannel() or implement your own Channel with logging |
Modifier and Type | Method and Description |
---|---|
boolean |
consume(CodeReader code,
Lexer lexer)
Tries to consume the character stream at the current reading cursor position (provided by the
CodeReader ). |
public UnknownCharacterChannel()
@Deprecated public UnknownCharacterChannel(boolean shouldLogWarning)
UnknownCharacterChannel()
or implement your own Channel with loggingpublic boolean consume(CodeReader code, Lexer lexer)
Channel
CodeReader
). If
the character stream is consumed the method must return true and the OUTPUT object can be fed.Copyright © 2009–2017 SonarSource. All rights reserved.