public class KeyPath
extends java.lang.Object
KeyPath. This may be fixed in the future.| Constructor and Description |
|---|
KeyPath(java.lang.String... keys) |
| Modifier and Type | Method and Description |
|---|---|
KeyPath |
addKey(java.lang.String key)
Returns a new KeyPath with the key added.
|
boolean |
fullyResolvesTo(java.lang.String key,
int depth)
Returns whether the key at specified depth is fully specific enough to match the full set of
keys in this keypath.
|
KeyPathElement |
getResolvedElement()
Returns a
KeyPathElement that this has been resolved to. |
int |
incrementDepthBy(java.lang.String key,
int depth)
For a given key and depth, returns how much the depth should be incremented by when
resolving a keypath to children.
|
java.lang.String |
keysToString() |
boolean |
matches(java.lang.String key,
int depth)
Returns whether they key matches at the specified depth.
|
boolean |
propagateToChildren(java.lang.String key,
int depth)
Returns whether the keypath resolution should propagate to children.
|
KeyPath |
resolve(KeyPathElement element)
Return a new KeyPath with the element resolved to the specified
KeyPathElement. |
java.lang.String |
toString() |
public KeyPath addKey(java.lang.String key)
public KeyPath resolve(KeyPathElement element)
KeyPathElement.public KeyPathElement getResolvedElement()
KeyPathElement that this has been resolved to. KeyPaths get resolved with
resolveKeyPath on LottieDrawable or LottieAnimationView.public boolean matches(java.lang.String key,
int depth)
public int incrementDepthBy(java.lang.String key,
int depth)
public boolean fullyResolvesTo(java.lang.String key,
int depth)
public boolean propagateToChildren(java.lang.String key,
int depth)
public java.lang.String keysToString()
public java.lang.String toString()
toString in class java.lang.Object