public final class TokenContextPath extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(TokenContextPath tcp)
Does this path contain the given path.
|
TokenContextPath |
getBase()
Get the base path which corresponds to only the first context
in the context-array.
|
TokenContext[] |
getContexts()
Retrieve the contexts of this context-path.
|
String |
getFullTokenName(TokenCategory tokenIDOrCategory)
Get the token-name with the name-prefix of this context-path.
|
String |
getNamePrefix()
Get the prefix that this context adds to the name of its tokens.
|
TokenContextPath |
getParent()
Get parent context-path that consists of all the contexts
of this path except the last one.
|
int |
length()
Get the length of the path returning the length of the contexts array.
|
TokenContextPath |
replaceStart(TokenContextPath byPath)
Get the path which has the initial part of the path
(usually only the base path) replaced by the given path.
|
String |
toString() |
public TokenContext[] getContexts()
public int length()
public TokenContextPath getParent()
public TokenContextPath getBase()
public boolean contains(TokenContextPath tcp)
public TokenContextPath replaceStart(TokenContextPath byPath)
byPath
- path that will replace the initial portion
of this path. The length of the portion is the same as the length
of this parameter.public String getNamePrefix()
public String getFullTokenName(TokenCategory tokenIDOrCategory)
Built on October 25 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.