Package ca.uqac.lif.cep.dsl
Class MultilineGroupProcessorBuilder
- 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
-
- ca.uqac.lif.cep.dsl.MultilineGroupProcessorBuilder
-
- All Implemented Interfaces:
ca.uqac.lif.bullwinkle.ParseNodeVisitor
public abstract class MultilineGroupProcessorBuilder extends GroupProcessorBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_commentChar
A character used to mark comment lines-
Fields inherited from class ca.uqac.lif.cep.dsl.GroupProcessorBuilder
m_inputForks, m_processors
-
Fields inherited from class ca.uqac.lif.cep.dsl.GrammarObjectBuilder
m_parser
-
-
Constructor Summary
Constructors Constructor Description MultilineGroupProcessorBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ca.uqac.lif.cep.GroupProcessor
build(java.io.InputStream is)
ca.uqac.lif.cep.GroupProcessor
build(java.lang.String expression)
Builds an object from an expressionca.uqac.lif.cep.GroupProcessor
build(java.util.Scanner scanner)
ca.uqac.lif.cep.GroupProcessor
buildLine(java.lang.String line)
abstract ca.uqac.lif.cep.GroupProcessor
endOfFileVisit()
protected ca.uqac.lif.cep.GroupProcessor
postVisit(java.util.Deque<java.lang.Object> stack)
void
setCommentChar(java.lang.String cc)
Sets the character used to mark comment lines-
Methods inherited from class ca.uqac.lif.cep.dsl.GroupProcessorBuilder
add, encapsulate, forkInput, getFork, newFork, remove
-
Methods inherited from class ca.uqac.lif.cep.dsl.GrammarObjectBuilder
setGrammar, setGrammar
-
-
-
-
Method Detail
-
build
public ca.uqac.lif.cep.GroupProcessor build(java.lang.String expression) throws ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
Description copied from class:GrammarObjectBuilder
Builds an object from an expression- Overrides:
build
in classGrammarObjectBuilder<ca.uqac.lif.cep.GroupProcessor>
- Parameters:
expression
- The expression to parse- Returns:
- The returned object
- Throws:
ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
- Thrown when no object could be built. This generally happens due to a parsing error.
-
build
public ca.uqac.lif.cep.GroupProcessor build(java.io.InputStream is) throws ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
- Throws:
ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
-
build
public ca.uqac.lif.cep.GroupProcessor build(java.util.Scanner scanner) throws ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
- Throws:
ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
-
setCommentChar
public void setCommentChar(java.lang.String cc)
Sets the character used to mark comment lines- Parameters:
cc
- The character. Set it to the empty string to disable comment characters
-
buildLine
public ca.uqac.lif.cep.GroupProcessor buildLine(java.lang.String line) throws ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
- Throws:
ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException
-
postVisit
protected ca.uqac.lif.cep.GroupProcessor postVisit(java.util.Deque<java.lang.Object> stack)
- Overrides:
postVisit
in classGroupProcessorBuilder
-
endOfFileVisit
public abstract ca.uqac.lif.cep.GroupProcessor endOfFileVisit()
-
-