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 java->native conversion.
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)
getMethod
public Method getMethod()
getParameterIndex
public int getParameterIndex()
getAnnotations
public Collection<Annotation> getAnnotations()
- Description copied from interface:
ToNativeContext
- Gets a sorted list of annotations
- Specified by:
getAnnotations in interface ToNativeContext
- Returns:
- a sorted list of annotations for this native type
getRuntime
public Runtime getRuntime()
- Description copied from interface:
ToNativeContext
- Gets the Runtime used for the conversion.
- Specified by:
getRuntime in interface ToNativeContext
- Returns:
- The runtime used for the conversion.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.