Class YamlFoldParser
java.lang.Object
org.fife.ui.rsyntaxtextarea.folding.YamlFoldParser
- All Implemented Interfaces:
FoldParser
Fold parser for YAML. Based on org.fife.ui.rsyntaxtextarea.folding.HtmlFoldParser.
Fold is started by each line.
Each fold contains all following lines with indent higher than the current line.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFolds(RSyntaxTextArea textArea) Returns a list of all folds in the text area.
-
Constructor Details
-
YamlFoldParser
public YamlFoldParser()Constructor.
-
-
Method Details
-
getFolds
Description copied from interface:FoldParserReturns a list of all folds in the text area.- Specified by:
getFoldsin 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.
-