Skip navigation links
org.netbeans.modules.editor.bracesmatching/0 1.43.0
org.netbeans.spi.editor.bracesmatching

Class BraceContext

    • Method Detail

      • getStart

        public Position getStart()
        Returns:
        Starting position of the context text content
      • getEnd

        public Position getEnd()
        Returns:
        Ending position of the context text content
      • getRelated

        public BraceContext getRelated()
        Returns:
        the related range, or null for none.
      • createRelated

        public BraceContext createRelated(Position start,
                                          Position end)
        Creates a new BraceContext related to this one.
        Parameters:
        start - start of the contextual text
        end - end of the text
        Returns:
        the new instance of BraceContext
      • create

        public static BraceContext create(Position start,
                                          Position end)
        Creates a new context area for the brace.
        Parameters:
        start - start of the text
        end - end of the text
        Returns:
        a new instance of BraceContext
org.netbeans.modules.editor.bracesmatching/0 1.43.0