Immutable and 'interned' wrapper holding an array of the contexts starting
with the original context in which the token is defined and ending with the
target context from which the token is being returned. It is final and has no
public constructor. The only entrypoint is through the get()
method. It's guaranteed that the two context-paths containing the same
contexts in the same order are the same objects and the equal-operator can be
used instead of calling equals().
author: Miloslav Metelka version: 1.00
Get the base path which corresponds to only the first context in the
context-array. The base path can be used for fast checking of the origin
path of the token.
Get the token-name with the name-prefix of this context-path. It merges
the token-name with the name-prefix of this context-path but it does it
without creating a new object.
Get the path which has the initial part of the path (usually only the
base path) replaced by the given path. The length of the replaced part of
the path is the same as the length of the path that will replace it. For
better performance the method caches the [byPath, result-path] in
hashmap.
Parameters: byPath - path that will replace the initial portion of this path. Thelength of the portion is the same as the length of thisparameter. the path with the initial part being replaced.