Class FoldingRange


  • public class FoldingRange
    extends java.lang.Object
    Represents an abstraction for different folding implementations. Specifically Eclipse's FoldingRegion and the FoldingRange of the LSP specification.
    Since:
    2.26
    • Constructor Detail

      • FoldingRange

        public FoldingRange​(int offset,
                            int length)
      • FoldingRange

        public FoldingRange​(int offset,
                            int length,
                            FoldingRangeKind kind)
      • FoldingRange

        public FoldingRange​(int offset,
                            int length,
                            FoldingRangeKind kind,
                            boolean initiallyFolded,
                            org.eclipse.xtext.util.ITextRegion visualPlaceholderRegion)
    • Method Detail

      • isInitiallyFolded

        public boolean isInitiallyFolded()
      • getVisualPlaceholderRegion

        public org.eclipse.xtext.util.ITextRegion getVisualPlaceholderRegion()
      • getOffset

        public int getOffset()
      • getLength

        public int getLength()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object