Class MultilineGroupProcessorBuilder

  • All Implemented Interfaces:
    ca.uqac.lif.bullwinkle.ParseNodeVisitor

    public abstract class MultilineGroupProcessorBuilder
    extends GroupProcessorBuilder
    • Nested Class Summary

      • Nested classes/interfaces inherited from class ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder

        ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.BuildException, ca.uqac.lif.bullwinkle.ParseTreeObjectBuilder.MethodAnnotation
      • Nested classes/interfaces inherited from interface ca.uqac.lif.bullwinkle.ParseNodeVisitor

        ca.uqac.lif.bullwinkle.ParseNodeVisitor.VisitException
    • 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 expression
      ca.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.bullwinkle.ParseTreeObjectBuilder

        build, fillMethods, getParents, handleNode, pop, preVisit, visit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_commentChar

        protected java.lang.String m_commentChar
        A character used to mark comment lines
    • Constructor Detail

      • MultilineGroupProcessorBuilder

        public MultilineGroupProcessorBuilder()
    • 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 class GrammarObjectBuilder<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 class GroupProcessorBuilder
      • endOfFileVisit

        public abstract ca.uqac.lif.cep.GroupProcessor endOfFileVisit()