Package ca.uqac.lif.cep.dsl
Class GroupProcessorBuilder
- java.lang.Object
-
- ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder<T>
-
- ca.uqac.lif.cep.dsl.GrammarObjectBuilder<ca.uqac.lif.cep.GroupProcessor>
-
- ca.uqac.lif.cep.dsl.GroupProcessorBuilder
-
- All Implemented Interfaces:
ca.uqac.lif.bullwinkle.ParseNodeVisitor
- Direct Known Subclasses:
MultilineGroupProcessorBuilder
public class GroupProcessorBuilder extends GrammarObjectBuilder<ca.uqac.lif.cep.GroupProcessor>
A special type ofGrammarObjectBuilder
that encapsulates the resulting chain into aGroupProcessor
.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Object,ca.uqac.lif.cep.tmf.Fork>
m_inputForks
protected java.util.Set<ca.uqac.lif.cep.Processor>
m_processors
-
Fields inherited from class ca.uqac.lif.cep.dsl.GrammarObjectBuilder
m_parser
-
-
Constructor Summary
Constructors Constructor Description GroupProcessorBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uqac.lif.cep.Processor
add(ca.uqac.lif.cep.Processor... procs)
protected static ca.uqac.lif.cep.GroupProcessor
encapsulate(ca.uqac.lif.cep.Processor p)
Encapsulates a processor into a group processorca.uqac.lif.cep.tmf.Passthrough
forkInput(java.lang.Object name)
ca.uqac.lif.cep.tmf.Fork
getFork(java.lang.Object name)
protected ca.uqac.lif.cep.tmf.Fork
newFork()
protected ca.uqac.lif.cep.GroupProcessor
postVisit(java.util.Deque<java.lang.Object> stack)
void
remove(ca.uqac.lif.cep.Processor... procs)
-
Methods inherited from class ca.uqac.lif.cep.dsl.GrammarObjectBuilder
build, setGrammar, setGrammar
-
-
-
-
Method Detail
-
add
public ca.uqac.lif.cep.Processor add(ca.uqac.lif.cep.Processor... procs)
-
remove
public void remove(ca.uqac.lif.cep.Processor... procs)
-
postVisit
protected ca.uqac.lif.cep.GroupProcessor postVisit(java.util.Deque<java.lang.Object> stack)
- Overrides:
postVisit
in classca.uqac.lif.bullwinkle.ParseTreeObjectBuilder<ca.uqac.lif.cep.GroupProcessor>
-
getFork
public ca.uqac.lif.cep.tmf.Fork getFork(java.lang.Object name)
-
newFork
protected ca.uqac.lif.cep.tmf.Fork newFork()
-
forkInput
public ca.uqac.lif.cep.tmf.Passthrough forkInput(java.lang.Object name)
-
encapsulate
protected static ca.uqac.lif.cep.GroupProcessor encapsulate(ca.uqac.lif.cep.Processor p)
Encapsulates a processor into a group processor- Parameters:
p
- The processor to encapsulate- Returns:
- A
GroupProcessor
containing only p inside
-
-