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 TypeMethodDescriptionbooleanGets a sorted list of annotationsintGets theRuntimeused for the conversion.inthashCode()
-
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:ToNativeContextGets a sorted list of annotations- Specified by:
getAnnotationsin interfaceToNativeContext- Returns:
- a sorted list of annotations for this native type
-
getRuntime
Description copied from interface:ToNativeContextGets theRuntimeused for the conversion.- Specified by:
getRuntimein interfaceToNativeContext- Returns:
- The runtime used for the conversion.
-
equals
-
hashCode
public int hashCode()
-