public interface Pipeline<P extends Parser>
| Modifier and Type | Method and Description |
|---|---|
long |
getHandleTime()
Get total time of data handling
|
String |
getName()
Get name of pipeline
|
Collection<? extends ParserRepresentation<P>> |
getRepresentations() |
HandleResult<P> |
handle(Context context,
Channel channel,
Snippet source)
Search for the parser through the pipeline with untouched source
|
void |
register(ParserRepresentation<P> parserRepresentation)
Register the specified parser to
|
HandleResult<P> handle(Context context, Channel channel, Snippet source)
context - the current contextchannel - the channel between handler and parsersource - the sourcevoid register(ParserRepresentation<P> parserRepresentation)
parserRepresentation - specified parser representation which will be registered in the pipelineCollection<? extends ParserRepresentation<P>> getRepresentations()
long getHandleTime()
String getName()
Copyright © 2020. All rights reserved.