Package jnr.ffi.mapper
Class MethodParameterContext
- java.lang.Object
-
- jnr.ffi.mapper.MethodParameterContext
-
- All Implemented Interfaces:
ToNativeContext
public final class MethodParameterContext extends Object implements ToNativeContext
Holds context for a method parameter from Java to native conversion.
-
-
Constructor Summary
Constructors Constructor Description MethodParameterContext(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Collection<Annotation>getAnnotations()Gets a sorted list of annotationsMethodgetMethod()intgetParameterIndex()RuntimegetRuntime()Gets theRuntimeused for the conversion.inthashCode()
-
-
-
Constructor Detail
-
MethodParameterContext
public MethodParameterContext(Runtime runtime, Method method, int parameterIndex)
-
MethodParameterContext
public MethodParameterContext(Runtime runtime, Method method, int parameterIndex, Annotation[] annotationArray)
-
MethodParameterContext
public MethodParameterContext(Runtime runtime, Method method, int parameterIndex, Collection<Annotation> annotations)
-
-
Method Detail
-
getMethod
public Method getMethod()
-
getParameterIndex
public int getParameterIndex()
-
getAnnotations
public Collection<Annotation> 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
public Runtime getRuntime()
Description copied from interface:ToNativeContextGets theRuntimeused for the conversion.- Specified by:
getRuntimein interfaceToNativeContext- Returns:
- The runtime used for the conversion.
-
-