public final class StructureElement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StructureElement.Kind
Kind of the structure element.
|
static class |
StructureElement.Tag
Tags are extra annotations that tweak the rendering of a symbol.
|
Modifier and Type | Method and Description |
---|---|
List<StructureElement> |
getChildren()
Children of this element, e.g.
|
String |
getDetail()
More detail for this symbol, e.g the signature of a function.
|
int |
getExpandedEndOffset()
The expanded range is offset range that is typically used to determine if
the cursors inside the element to reveal in the element in the UI.
|
Range |
getExpandedRange()
The expanded range is offset range that is typically used to determine if
the cursors inside the element to reveal in the element in the UI.
|
int |
getExpandedStartOffset()
The expanded range is offset range that is typically used to determine if
the cursors inside the element to reveal in the element in the UI.
|
FileObject |
getFile()
File which contains this element.
|
StructureElement.Kind |
getKind()
Kind of this structure element.
|
String |
getName()
The name is displayed in the structure tree and other ui.
|
int |
getSelectionEndOffset()
The end of offset range where this element should be selected and
revealed in document when selected.
|
Range |
getSelectionRange()
The selection range marks part of document that should be revealed
and selected for an element.
|
int |
getSelectionStartOffset()
The start of offset range where this element should be selected and
revealed in document when selected in outline view.
|
Set<StructureElement.Tag> |
getTags()
Tags for this element.
|
@NonNull public String getName()
public int getSelectionStartOffset()
public int getSelectionEndOffset()
public int getExpandedStartOffset()
public int getExpandedEndOffset()
public Range getSelectionRange()
public Range getExpandedRange()
public StructureElement.Kind getKind()
public Set<StructureElement.Tag> getTags()
public String getDetail()
public List<StructureElement> getChildren()
@CheckForNull public FileObject getFile()
null
, the file may
be inaccessible; in that case, offsets will be also set to -1.null