public interface FoldingBuilder
LanguageFolding.forLanguage(Language)
Modifier and Type | Method and Description |
---|---|
FoldingDescriptor [] |
buildFoldRegions(ASTNode node,
Document document)
Builds the folding regions for the specified node in the AST tree and its children.
|
java.lang.String |
getPlaceholderText(ASTNode node)
Returns the text which is displayed in the editor for the folding region related to the
specified node when the folding region is collapsed.
|
boolean |
isCollapsedByDefault(ASTNode node)
Returns the default collapsed state for the folding region related to the specified node.
|
default boolean |
isCollapsedByDefault(FoldingDescriptor foldingDescriptor) |
FoldingDescriptor [] buildFoldRegions(ASTNode node, Document document)
FoldingDescriptor
with similar AST node.node
- the node for which folding is requested.document
- the document for which folding is built. Can be used to retrieve line
numbers for folding regions.java.lang.String getPlaceholderText(ASTNode node)
node
- the node for which the placeholder text is requested.boolean isCollapsedByDefault(ASTNode node)
node
- the node for which the collapsed state is requested.default boolean isCollapsedByDefault(FoldingDescriptor foldingDescriptor)