Package: groovy.console.ui.text

## [Java] Class MatchingHighlighter

- groovy.console.ui.text.MatchingHighlighter

- All Implemented Interfaces and Traits:
    CaretListener

      public class MatchingHighlighter
      extends Object
      implements CaretListener

  Represents highlighter to highlight matched parentheses, brackets and curly braces when caret touching them

  Since:
    3.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `MatchingHighlighter(SmartDocumentFilter smartDocumentFilter, JTextPane textEditor)` Creates a highlighter bound to the supplied document filter and editor.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `caretUpdate(CaretEvent e)` {@inheritDoc}
    `` | `public void` | `highlight()` Schedules highlighting for the delimiter nearest the caret.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public MatchingHighlighter(SmartDocumentFilter smartDocumentFilter, JTextPane textEditor)

      Creates a highlighter bound to the supplied document filter and editor.

      Parameters:
        `smartDocumentFilter` - the token source used to find matching delimiters
        `textEditor` - the text pane whose delimiters are highlighted

  - ### Method Detail

    - #### public void caretUpdate(CaretEvent e)

      {@inheritDoc}

    - #### public void highlight()

      Schedules highlighting for the delimiter nearest the caret.