Constructor
new IdExtractor()
    Create a new Extractor instance
- Implements:
- ExtractorInterface.<Number>
 
- Source:
Classes
Members
(protected) _memo :Map.<Node, Number>
Type:
- Map.<Node, Number>
- Source:
Methods
(protected) _extract(node)
    Extract the ID for a node and cache it.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| node | Node | 
- Source:
get(node) → {Number}
    Get the cached ID (index within pre-order
traversal) for a node. If it is not cached, compute it first.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| node | Node | 
- Source:
Returns:
- Type
- Number