Inheritance diagram for RegionHandler:
TextParser class generates calls of this class methods sequentially while parsing the text from top to bottom. All enterScheme and leaveScheme calls are properly enclosed, addRegion calls can inform about regions, overlapped with each other. All handler methods are called sequentially. It means, that if one of methods is called with some line number, all other calls (before endParsing event comes) can inform about events in the same, or lower line's numbers. This makes sequential tokens processing.
Public Member Functions | |
virtual void | startParsing (int lno) |
Start of text parsing. | |
virtual void | endParsing (int lno) |
End of text parsing. | |
virtual void | clearLine (int lno, String *line) |
Clear line event. | |
virtual void | addRegion (int lno, String *line, int sx, int ex, const Region *region)=0 |
Informs handler about lexical region in line. | |
virtual void | enterScheme (int lno, String *line, int sx, int ex, const Region *region, const Scheme *scheme)=0 |
Informs handler about entering into specified scheme. | |
virtual void | leaveScheme (int lno, String *line, int sx, int ex, const Region *region, const Scheme *scheme)=0 |
Informs handler about leaveing specified scheme. |
|
Start of text parsing. Called only once, when TextParser starts parsing of the specified block of text. All other event messages comes between this call and endParsing call.
Reimplemented in LineRegionsSupport. |
|
End of text parsing. Called only once, when TextParser stops parsing of the specified block of text.
|
|
Clear line event. Called once for each parsed text line, when TextParser starts to parse specified line of text. This method is called before any of the region information passed, and used often to clear internal handler structure of this line before adding new one.
|
|
Informs handler about lexical region in line. This is a basic method, wich transfer information from parser to application. Positions of different passed regions can be overlapped.
|
|
Informs handler about entering into specified scheme.
Parameter |
|
Informs handler about leaveing specified scheme.
Parameter |