getOrigin

abstract fun getOrigin(key: K): Origin

Return the origin of the given key or null if the origin cannot be determined.

Return

the origin of the key or null

Parameters

key

the key to lookup


open fun <K> getOrigin(source: Any, key: K): Origin

Attempt to look up the origin from the given source. If the source is not a OriginLookup or if an exception occurs during lookup then null is returned.

Return

an Origin or null

Parameters

source

the source object

key

the key to lookup

<K>

the key type