Class MethodParameterContext

  • All Implemented Interfaces:
    ToNativeContext

    public final class MethodParameterContext
    extends java.lang.Object
    implements ToNativeContext
    Holds context for a method parameter from Java to native conversion.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodParameterContext​(Runtime runtime, java.lang.reflect.Method method, int parameterIndex)  
      MethodParameterContext​(Runtime runtime, java.lang.reflect.Method method, int parameterIndex, java.lang.annotation.Annotation[] annotationArray)  
      MethodParameterContext​(Runtime runtime, java.lang.reflect.Method method, int parameterIndex, java.util.Collection<java.lang.annotation.Annotation> annotations)  
    • Constructor Detail

      • MethodParameterContext

        public MethodParameterContext​(Runtime runtime,
                                      java.lang.reflect.Method method,
                                      int parameterIndex)
      • MethodParameterContext

        public MethodParameterContext​(Runtime runtime,
                                      java.lang.reflect.Method method,
                                      int parameterIndex,
                                      java.lang.annotation.Annotation[] annotationArray)
      • MethodParameterContext

        public MethodParameterContext​(Runtime runtime,
                                      java.lang.reflect.Method method,
                                      int parameterIndex,
                                      java.util.Collection<java.lang.annotation.Annotation> annotations)
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
      • getParameterIndex

        public int getParameterIndex()
      • getAnnotations

        public java.util.Collection<java.lang.annotation.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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object