OriginLookup

An interface that may be implemented by an object that can lookup Origin information from a given key. Can be used to add origin support to existing classes.

Author

Phillip Webb

Since

2.0.0

Parameters

<K>

the lookup key type

Inheritors

Functions

Link copied to clipboard
abstract fun getOrigin(key: K): Origin
Return the origin of the given key or null if the origin cannot be determined.
open fun <K> getOrigin(source: Any, key: K): Origin
Attempt to look up the origin from the given source.
Link copied to clipboard
open fun getPrefix(): String
Return the implicit prefix that is applied when performing a lookup or null if no prefix is used.
Link copied to clipboard
open fun isImmutable(): Boolean
Return true if this lookup is immutable and has contents that will never change.