public interface FoldingBlock<B extends FoldingBlock>
Modifier and Type | Method and Description |
---|---|
void |
add(B child)
Adds the specified child block to this source code block.
|
boolean |
bounds(int offset)
Returns whether the specified caret offset falls inside the bounds
of this source code block.
|
int |
getChildCount()
Returns the number of child blocks contained directly by this source
code block.
|
java.util.Iterator<B> |
getChildren()
Returns an iterator over the child blocks contained directly by this
source code block.
|
int |
getEndOffset()
Returns the ending caret offset of this source code block.
|
B |
getParent()
Returns the block that contains this source code block.
|
java.lang.String |
getReplacementText()
Returns the abbreviated text used to represent this source code
block in the code editor when the block is collapsed.
|
int |
getStartOffset()
Returns the starting caret offset of this source code block.
|
boolean |
isExpanded()
Returns whether this source code block is expanded.
|
int |
length()
Returns the length in characters of this source code block.
|
void |
remove(B child)
Removes the specified child block from this source code block.
|
void |
removeAll()
Removes all child blocks from this source code block.
|
void |
setExpanded(boolean isExpanded)
Sets whether this source code block is expanded.
|
void |
setParent(B parent)
Sets the block that contains this source code block.
|
boolean isExpanded()
true
if the block is expandedvoid setExpanded(boolean isExpanded)
isExpanded
- true
if the block is expandedB getParent()
void setParent(B parent)
parent
- the containing blockvoid add(B child)
child
- the child block to addvoid remove(B child)
child
- the child block to removevoid removeAll()
int getChildCount()
java.util.Iterator<B> getChildren()
int getStartOffset()
int getEndOffset()
int length()
boolean bounds(int offset)
offset
- the caret offset to testtrue
if the offset is inside the bounds of the
blockjava.lang.String getReplacementText()