public class NMethodDescriptor extends NMemberDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
NMethodDescriptor.ParameterCollection |
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier | Constructor and Description |
|---|---|
protected |
NMethodDescriptor(HNObject handle,
boolean claimHandle) |
| Modifier and Type | Method and Description |
|---|---|
NMethodDescriptor.ParameterCollection |
getParameters()
Retrieves the collection of method's parameters.
|
NParameterDescriptor |
getReturnParameter()
Retrieves the parameter returned by the method.
|
Object |
invoke(NObject object,
NPropertyBag parameters)
Invokes the method associated with the descriptor.
|
Object |
invoke(NObject object,
Object[] parameters)
Invokes the method associated with the descriptor.
|
Object |
invoke(NObject object,
String parameters)
Invokes the method associated with the descriptor.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
getComponentTypegetAttributes, getNameaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizeprotected NMethodDescriptor(HNObject handle, boolean claimHandle)
public static NType nativeTypeOf()
public final NParameterDescriptor getReturnParameter()
public final Object invoke(NObject object, Object[] parameters)
object - The object on which the method will be invoked.parameters - An array of values with the same number, order, and type as the parameters of the method or constructor to be invoked.public final Object invoke(NObject object, NPropertyBag parameters)
object - The object on which the method will be invoked.parameters - A property bag containing values with the same number, order, and type as the parameters of the method or constructor to be invoked.public final Object invoke(NObject object, String parameters)
object - The object on which the method will be invoked.parameters - A string representing the parameters of the method or constructor to be invoked.public final NMethodDescriptor.ParameterCollection getParameters()
Copyright © 2016 Neurotechnology. All rights reserved.