Package jnr.ffi.util

Class AnnotationProxy<A extends Annotation>

    • Method Detail

      • newProxy

        public static <A extends AnnotationAnnotationProxy<A> newProxy​(Class<A> annotationType)
        Creates a new annotation proxy.
        Type Parameters:
        A - the annotation type has to be proxed.
        Parameters:
        annotationType - the annotation type class has to be proxed.
        Returns:
        a new annotation proxy.
      • setProperty

        public void setProperty​(String name,
                                Object value)
        Set a property value.
        Parameters:
        name - the property name.
        value - the property value.
      • getProperty

        public Object getProperty​(String name)
        Returns the property value, given the name, if present.
        Parameters:
        name - the property name.
        Returns:
        the property value, given the name, if present.
      • getProxedAnnotation

        public A getProxedAnnotation()
        Returns the proxed annotation.
        Returns:
        the proxed annotation.