ConditionNode
dendron.condition_node.ConditionNode
Bases: TreeNode
Source code in src/dendron/condition_node.py
get_node_by_name(name)
Search for a node by its name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
`str`
|
The name of the node we are looking for. |
required |
Returns:
Type | Description |
---|---|
Optional[TreeNode]
|
|
Optional[TreeNode]
|
or None. |
Source code in src/dendron/condition_node.py
node_type()
pretty_repr(depth=0)
Return a string representation of this node at the given depth.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
depth
|
`int`
|
The depth of this node in a surrounding tree. |
0
|
Returns:
Type | Description |
---|---|
str
|
|