- All Implemented Interfaces:
public class PatternMatchEvent extends EventObject
An event describing a pattern match in a text console. The source of the event is a
Clients may instantiate this class.
(TextConsole console, int matchOffset, int matchLength)Constructs a new pattern match event.
console- the console in which the match was found
matchOffset- the offset at which the match was found
matchLength- the length of the text that matched
getLengthpublic int getLength()Returns the length of the matched string.
- the length of the matched string
getOffsetpublic int getOffset()Returns the offset of the match within the document.
- the offset of the match within the document