Class XmlFoldParser
java.lang.Object
org.fife.ui.rsyntaxtextarea.folding.XmlFoldParser
- All Implemented Interfaces:
FoldParser
Fold parser for XML. Any tags that span more than one line, as well as
comment regions spanning more than one line, are identified as foldable
regions.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char[]
private static final char[]
private static final char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFolds
(RSyntaxTextArea textArea) Returns a list of all folds in the text area.private static void
removeFold
(Fold fold, List<Fold> folds) If this fold has a parent fold, this method removes it from its parent.
-
Field Details
-
MARKUP_CLOSING_TAG_START
private static final char[] MARKUP_CLOSING_TAG_START -
MARKUP_SHORT_TAG_END
private static final char[] MARKUP_SHORT_TAG_END -
MLC_END
private static final char[] MLC_END
-
-
Constructor Details
-
XmlFoldParser
public XmlFoldParser()
-
-
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.
-
removeFold
If this fold has a parent fold, this method removes it from its parent. Otherwise, it's assumed to be the most recent (top-level) fold in thefolds
list, and is removed from that.- Parameters:
fold
- The fold to remove.folds
- The list of top-level folds.
-