com.sonar.sslr.impl.channel
Class CommentRegexpChannel

java.lang.Object
  extended by org.sonar.channel.Channel<Lexer>
      extended by com.sonar.sslr.impl.channel.CommentRegexpChannel

public class CommentRegexpChannel
extends org.sonar.channel.Channel<Lexer>

Creates comment trivia from characters, which match given regular expression.

See Also:
RegexpChannelBuilder

Constructor Summary
CommentRegexpChannel(String regexp)
           
 
Method Summary
 boolean consume(org.sonar.channel.CodeReader code, Lexer lexer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentRegexpChannel

public CommentRegexpChannel(String regexp)
Method Detail

consume

public boolean consume(org.sonar.channel.CodeReader code,
                       Lexer lexer)
Specified by:
consume in class org.sonar.channel.Channel<Lexer>


Copyright © 2009-2014 SonarSource. All Rights Reserved.