Constructor and Description |
---|
IdentifierAndKeywordChannel(String regexp,
boolean caseSensitive,
TokenType[]... keywordSets) |
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 IdentifierAndKeywordChannel(String regexp, boolean caseSensitive, TokenType[]... keywordSets)
PatternSyntaxException
- if the expression's syntax is invalidpublic 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.