Interface FoldParser
- All Known Implementing Classes:
CurlyFoldParser
,HtmlFoldParser
,JsonFoldParser
,LatexFoldParser
,LinesWithContentFoldParser
,LispFoldParser
,NsisFoldParser
,PythonFoldParser
,XmlFoldParser
,YamlFoldParser
public interface FoldParser
Locates folds in a document. If you are implementing a language that has
sections of source code that can be logically "folded," you can create an
instance of this interface that locates those regions and represents them
as
Fold
s. RSyntaxTextArea
knows how to take it from
there and implement code folding in the editor.- Version:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetFolds
(RSyntaxTextArea textArea) Returns a list of all folds in the text area.
-
Method Details
-
getFolds
Returns a list of all folds in the text area.- Parameters:
textArea
- The text area whose contents should be analyzed.- Returns:
- The list of folds. If this method returns
null
, it is treated as if no folds were found.
-