Class TopDownPathResolver

Create a new instance of top-down path resolver

Constructor

class TopDownPathResolver(refnode)
Arguments:
  • refnode

Methods

resolve

TopDownPathResolver#resolve(path, base)
Arguments:
  • path – Array of integers
  • base
:returns :
A result object with two properties: node holds the resolved

tree.Node and tail the unresolved part of path.

Try to resolve the given path top-down. Return an object containing the last internal node which was resolved properly as well as the unresolved tail of the path. Note that leaf nodes are represented by their parent and a tail containing their child-index.

Table Of Contents

Previous topic

Class ContextResolver

Next topic

Class ResolverResult