Liking cljdoc? Tell your friends :D

jdk.lang.invoke.ConstantCallSite

A ConstantCallSite is a CallSite whose target is permanent, and can never be changed. An invokedynamic instruction linked to a ConstantCallSite is permanently bound to the call site's target.

A ConstantCallSite is a CallSite whose target is permanent, and can never be changed.
An invokedynamic instruction linked to a ConstantCallSite is permanently
bound to the call site's target.
raw docstring

->constant-call-siteclj

(->constant-call-site target)

Constructor.

Creates a call site with a permanent target.

target - the target to be permanently associated with this call site - java.lang.invoke.MethodHandle

throws: java.lang.NullPointerException - if the proposed target is null

Constructor.

Creates a call site with a permanent target.

target - the target to be permanently associated with this call site - `java.lang.invoke.MethodHandle`

throws: java.lang.NullPointerException - if the proposed target is null
raw docstring

dynamic-invokerclj

(dynamic-invoker this)

Returns this call site's permanent target. Since that target will never change, this is a correct implementation of CallSite.dynamicInvoker.

returns: the immutable linkage state of this call site, a constant method handle - java.lang.invoke.MethodHandle

throws: java.lang.IllegalStateException - if the ConstantCallSite constructor has not completed

Returns this call site's permanent target.
 Since that target will never change, this is a correct implementation
 of CallSite.dynamicInvoker.

returns: the immutable linkage state of this call site, a constant method handle - `java.lang.invoke.MethodHandle`

throws: java.lang.IllegalStateException - if the ConstantCallSite constructor has not completed
raw docstring

get-targetclj

(get-target this)

Returns the target method of the call site, which behaves like a final field of the ConstantCallSite. That is, the target is always the original value passed to the constructor call which created this instance.

returns: the immutable linkage state of this call site, a constant method handle - java.lang.invoke.MethodHandle

throws: java.lang.IllegalStateException - if the ConstantCallSite constructor has not completed

Returns the target method of the call site, which behaves
 like a final field of the ConstantCallSite.
 That is, the target is always the original value passed
 to the constructor call which created this instance.

returns: the immutable linkage state of this call site, a constant method handle - `java.lang.invoke.MethodHandle`

throws: java.lang.IllegalStateException - if the ConstantCallSite constructor has not completed
raw docstring

set-targetclj

(set-target this ignore)

Always throws an UnsupportedOperationException. This kind of call site cannot change its target.

ignore - a new target proposed for the call site, which is ignored - java.lang.invoke.MethodHandle

throws: java.lang.UnsupportedOperationException - because this kind of call site cannot change its target

Always throws an UnsupportedOperationException.
 This kind of call site cannot change its target.

ignore - a new target proposed for the call site, which is ignored - `java.lang.invoke.MethodHandle`

throws: java.lang.UnsupportedOperationException - because this kind of call site cannot change its target
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close