Package groovy.console.ui.text
Class StructuredSyntaxDocumentFilter.MultiLineRun
java.lang.Object
groovy.console.ui.text.StructuredSyntaxDocumentFilter.MultiLineRun
- Enclosing class:
- StructuredSyntaxDocumentFilter
Tracks a multi-line styled region within the document.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiLineRun(int start, int end) Creates a multi-line run using a two-character delimiter.MultiLineRun(int start, int end, int delimiterSize) Creates a multi-line run with the supplied delimiter size. -
Method Summary
-
Constructor Details
-
MultiLineRun
Creates a multi-line run using a two-character delimiter.- Parameters:
start- the inclusive start offsetend- the inclusive end offset- Throws:
BadLocationException- if either offset is invalid
-
MultiLineRun
Creates a multi-line run with the supplied delimiter size.- Parameters:
start- the inclusive start offsetend- the inclusive end offsetdelimiterSize- the delimiter width in characters- Throws:
BadLocationException- if either offset is invalid
-
-
Method Details
-
getDelimiterSize
public int getDelimiterSize()Returns the delimiter width used by this run.- Returns:
- the delimiter size in characters
-
getDelimeterSize
Deprecated.usegetDelimiterSize()instead -
end
public int end()Returns the inclusive end offset.- Returns:
- the end offset
-
length
public int length()Returns the run length.- Returns:
- the number of characters in the run
-
start
public int start()Returns the inclusive start offset.- Returns:
- the start offset
-
toString
Returns a textual description of the run bounds.
-
getDelimiterSize()instead