Class PerlOutputCollector

  • All Implemented Interfaces:
    java.lang.Runnable

    class PerlOutputCollector
    extends OutputCollector
    Listens to stderr from Perl to determine syntax errors in code.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern ERROR_PATTERN  
      private PerlParser parser  
      private org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result  
      private javax.swing.text.Element root  
    • Constructor Summary

      Constructors 
      Constructor Description
      PerlOutputCollector​(java.io.InputStream in, PerlParser parser, org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result, javax.swing.text.Element root)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void handleLineRead​(java.lang.String line)
      Called every time a line is read from the stream.
      • Methods inherited from class java.lang.Object

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

      • result

        private org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result
      • root

        private javax.swing.text.Element root
      • ERROR_PATTERN

        private static final java.util.regex.Pattern ERROR_PATTERN
    • Constructor Detail

      • PerlOutputCollector

        PerlOutputCollector​(java.io.InputStream in,
                            PerlParser parser,
                            org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result,
                            javax.swing.text.Element root)
        Constructor.
        Parameters:
        in - The input stream.
    • Method Detail

      • handleLineRead

        protected void handleLineRead​(java.lang.String line)
        Description copied from class: OutputCollector
        Called every time a line is read from the stream. This allows subclasses to handle lines differently. They can also call into the super implementation if they want to log the lines into the buffer.
        Overrides:
        handleLineRead in class OutputCollector
        Parameters:
        line - The line read.