Package org.sonar.sslr.channel
Class ChannelDispatcher<O>
- java.lang.Object
-
- org.sonar.sslr.channel.Channel<O>
-
- org.sonar.sslr.channel.ChannelDispatcher<O>
-
public class ChannelDispatcher<O> extends Channel<O>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChannelDispatcher.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChannelDispatcher.Builder
builder()
Get a Builder instance to build a new ChannelDispatcherboolean
consume(CodeReader code, O output)
Tries to consume the character stream at the current reading cursor position (provided by theCodeReader
).
-
-
-
Method Detail
-
consume
public boolean consume(CodeReader code, O output)
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.
-
builder
public static ChannelDispatcher.Builder builder()
Get a Builder instance to build a new ChannelDispatcher
-
-