Package jnr.ffi.mapper
Class MethodParameterContext
java.lang.Object
jnr.ffi.mapper.MethodParameterContext
- All Implemented Interfaces:
ToNativeContext
Holds context for a method parameter from Java to native conversion.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodParameterContext
(Runtime runtime, Method method, int parameterIndex) MethodParameterContext
(Runtime runtime, Method method, int parameterIndex, Annotation[] annotationArray) MethodParameterContext
(Runtime runtime, Method method, int parameterIndex, Collection<Annotation> annotations) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets a sorted list of annotationsint
Gets theRuntime
used for the conversion.int
hashCode()
-
Constructor Details
-
MethodParameterContext
-
MethodParameterContext
public MethodParameterContext(Runtime runtime, Method method, int parameterIndex, Annotation[] annotationArray) -
MethodParameterContext
public MethodParameterContext(Runtime runtime, Method method, int parameterIndex, Collection<Annotation> annotations)
-
-
Method Details
-
getMethod
-
getParameterIndex
public int getParameterIndex() -
getAnnotations
Description copied from interface:ToNativeContext
Gets a sorted list of annotations- Specified by:
getAnnotations
in interfaceToNativeContext
- Returns:
- a sorted list of annotations for this native type
-
getRuntime
Description copied from interface:ToNativeContext
Gets theRuntime
used for the conversion.- Specified by:
getRuntime
in interfaceToNativeContext
- Returns:
- The runtime used for the conversion.
-
equals
-
hashCode
public int hashCode()
-