org.apache.oro.text

Class MatchActionInfo

public final class MatchActionInfo extends Object

This class is used to provide information regarding a match found by MatchActionProcessor to a MatchAction callback implementation.

Since: 1.0

Version: 2.0.8

See Also: MatchAction MatchActionProcessor

Field Summary
char[]charLine
The char[] representation of the matching line with the trailing newline truncated.
Listfields
A List of Strings containing the fields of the line that were separated out by the fieldSeparator.
PatternfieldSeparator
The field separator used by the MatchActionProcessor.
BufferedReaderinput
The input stream passed to the MatchActionProcessor from which the matching line was read.
Stringline
The String representation of the matching line with the trailing newline truncated.
intlineNumber
The line number of the matching line
MatchResultmatch
The first match found in the line of input.
PatternMatchermatcher
The PatternMatcher used to find the match.
PrintWriteroutput
The output stream passed to the MatchActionProcessor.
Patternpattern
The pattern found in the line of input.

Field Detail

charLine

public char[] charLine
The char[] representation of the matching line with the trailing newline truncated.

fields

public List fields
A List of Strings containing the fields of the line that were separated out by the fieldSeparator. If no field separator was specified, this variable will be set to null.

fieldSeparator

public Pattern fieldSeparator
The field separator used by the MatchActionProcessor. This will be set to null by a MatchActionProcessor instance if no field separator was specified before match processing began.

input

public BufferedReader input
The input stream passed to the MatchActionProcessor from which the matching line was read.

line

public String line
The String representation of the matching line with the trailing newline truncated.

lineNumber

public int lineNumber
The line number of the matching line

match

public MatchResult match
The first match found in the line of input. If a MatchAction callback is registered with a null pattern (meaning the callback should be applied to every line of input), this value will be null.

matcher

public PatternMatcher matcher
The PatternMatcher used to find the match.

output

public PrintWriter output
The output stream passed to the MatchActionProcessor.

pattern

public Pattern pattern
The pattern found in the line of input. If a MatchAction callback is registered with a null pattern (meaning the callback should be applied to every line of input), this value will be null.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.