gh-pages / com.nextfaze.devfun.internal.exception / ExceptionFunctionItem

ExceptionFunctionItem

class ExceptionFunctionItem : FunctionItem (source)

Constructors

Name Summary
<init> ExceptionFunctionItem(ex: String)

Properties

Name Summary
category val category: ExceptionCategoryDefinition
The resolved category definition.
function val function: ExceptionFunctionDefinition
The original definition this item was derived from.
name val name: String
The formatted display name.

Inherited Properties

Name Summary
args open val args: FunctionArgs
Custom arguments for the invoke invocation. Otherwise arguments will be requested from an InstanceProvider.
group open val group: CharSequence?
A “grouping” for this item.
invoke open val invoke: FunctionInvoke
Function to be invoked on click.

Extension Properties

Name Summary
receiverClass val FunctionItem.receiverClass: KClass<*>
Get the receiver class for this function item.
receiverClassForInvocation val FunctionItem.receiverClassForInvocation: KClass<*>?
Get the receiver class for this function item if you intend to invoke it. That is, it will return null if the type isn’t needed.

Extension Functions

Name Summary
call fun FunctionItem.call(invoker: Invoker = devFun.get()): InvokeResult?
Convenience function for invoking a FunctionItem using the current devFun instance.
parameterInstances fun FunctionItem.parameterInstances(instanceProvider: InstanceProvider = devFun.instanceProviders): List<Any?>
Get the parameter instances for this function item for invocation.
receiverInstance fun FunctionItem.receiverInstance(instanceProvider: InstanceProvider = devFun.instanceProviders): Any?
Get the receiver instance for this function item to be used for invocation.