OrgTree class abstract
A node potentially containing OrgSections
- Inheritance
- Implementers
Constructors
-
OrgTree(OrgContent? content, [Iterable<
OrgSection> ? sections])
Properties
-
children
→ List<
OrgNode> -
Leading content, if present, followed by sections
no setteroverride
- content → OrgContent?
-
Leading content
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → int
-
The "level" (depth) of this node in the tree; corresponds to the number of
'*' characters in the section heading
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sections
→ List<
OrgSection> -
Sections contained within this tree. These are also iterated by children.
final
Methods
-
contains(
Pattern pattern, {bool includeChildren = true}) → bool -
Return true if this node or any of its children recursively match the
supplied
pattern
override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
visit<
T extends OrgNode> (bool visitor(T)) → bool -
Walk AST with
visitor
. Specify a typeT
to only visit nodes of that type. The visitor function must returntrue
to continue iterating, orfalse
to stop.inherited -
visitSections(
bool visitor(OrgSection)) → bool -
Walk only section nodes of the AST with
visitor
. More efficient than calling visit. The visitor function must returntrue
to continue iterating, orfalse
to stop.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited