Package: groovy.ui.text

## [Java] Class SmartDocumentFilter

- groovy.ui.text.SmartDocumentFilter

- The document filter based on Parrot's lexer is for highlighting the content of text editor

  Since:
    3.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `SmartDocumentFilter (DefaultStyledDocument styledDocument)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `List<Token>` | `getLatestTokenList()`
    `` | `void` | `insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)`
    `` | `boolean` | `isLatest()`
    `` | `void` | `remove(DocumentFilter.FilterBypass fb, int offset, int length)`
    `` | `void` | `replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class DocumentFilter` | `remove, replace, insertString, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public SmartDocumentFilter(DefaultStyledDocument styledDocument)

  - ### Method Detail

    - #### public List<Token> getLatestTokenList()

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)

    - #### public boolean isLatest()

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void remove(DocumentFilter.FilterBypass fb, int offset, int length)

    - #### @com.github.javaparser.ast.expr.MarkerAnnotationExprOverride public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)