Package org.fife.rsta.ac.perl
Class PerlOutputCollector
- java.lang.Object
-
- org.fife.rsta.ac.OutputCollector
-
- org.fife.rsta.ac.perl.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.PatternERROR_PATTERNprivate PerlParserparserprivate org.fife.ui.rsyntaxtextarea.parser.DefaultParseResultresultprivate javax.swing.text.Elementroot
-
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 voidhandleLineRead(java.lang.String line)Called every time a line is read from the stream.-
Methods inherited from class org.fife.rsta.ac.OutputCollector
getOutput, run
-
-
-
-
Field Detail
-
parser
private PerlParser parser
-
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:OutputCollectorCalled 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:
handleLineReadin classOutputCollector- Parameters:
line- The line read.
-
-