[Java] Class SmartDocumentFilter

  • groovy.console.ui.text.SmartDocumentFilter
public class SmartDocumentFilter
extends DocumentFilter

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
public List<Token> getLatestTokenList()
public Tuple2<Integer, Integer> getRenderRange()
public void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)
public boolean isLatest()
public void remove(DocumentFilter.FilterBypass fb, int offset, int length)
public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)
public void setRenderRange(Tuple2<Integer, Integer> renderRange)

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()

public Tuple2<Integer, Integer> getRenderRange()

@Override public void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attrs)

public boolean isLatest()

@Override public void remove(DocumentFilter.FilterBypass fb, int offset, int length)

@Override public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs)

public void setRenderRange(Tuple2<Integer, Integer> renderRange)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/console/ui/text/SmartDocumentFilter.html