Class LinesWithContentFoldParser
java.lang.Object
org.fife.ui.rsyntaxtextarea.folding.LinesWithContentFoldParser
- All Implemented Interfaces:
FoldParser
A fold parser that considers any contiguous group of lines without a blank
line to be a "block" of code. Useful for languages that don't have the
concept of code blocks, such as assembly languages.
- Version:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFolds
(RSyntaxTextArea textArea) Returns a list of all folds in the text area.
-
Constructor Details
-
LinesWithContentFoldParser
public LinesWithContentFoldParser()
-
-
Method Details
-
getFolds
Description copied from interface:FoldParser
Returns a list of all folds in the text area.- Specified by:
getFolds
in interfaceFoldParser
- 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.
-