Class LatexFoldParser

  • All Implemented Interfaces:
    FoldParser

    public class LatexFoldParser
    extends java.lang.Object
    implements FoldParser
    A fold parser for LaTeX documents. This is likely incomplete and/or not quite right; feedback is appreciated.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char[] BEGIN  
      private static char[] END  
    • Constructor Summary

      Constructors 
      Constructor Description
      LatexFoldParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Fold> getFolds​(RSyntaxTextArea textArea)
      Returns a list of all folds in the text area.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BEGIN

        private static final char[] BEGIN
      • END

        private static final char[] END
    • Constructor Detail

      • LatexFoldParser

        public LatexFoldParser()
    • Method Detail

      • getFolds

        public java.util.List<Fold> getFolds​(RSyntaxTextArea textArea)
        Description copied from interface: FoldParser
        Returns a list of all folds in the text area.
        Specified by:
        getFolds in interface FoldParser
        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.