Class AnnotationInfo


  • public class AnnotationInfo
    extends java.lang.Object
    Descriptor for method annotations.
    Author:
    Jerome Louvel
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationInfo​(Method restletMethod, java.lang.reflect.Method javaMethod, java.lang.String value)
      Constructor.
    • Constructor Detail

      • AnnotationInfo

        public AnnotationInfo​(Method restletMethod,
                              java.lang.reflect.Method javaMethod,
                              java.lang.String value)
        Constructor.
        Parameters:
        restletMethod - The matching Restlet method.
        javaMethod - The annotated Java method.
        value - The annotation value.
    • Method Detail

      • getJavaInputTypes

        public java.lang.Class<?>[] getJavaInputTypes()
        Returns the input types of the Java method.
        Returns:
        The input types of the Java method.
      • getJavaMethod

        public java.lang.reflect.Method getJavaMethod()
        Returns the annotated Java method.
        Returns:
        The annotated Java method.
      • getJavaOutputType

        public java.lang.Class<?> getJavaOutputType()
        Returns the output type of the Java method.
        Returns:
        The output type of the Java method.
      • getRequestVariants

        public java.util.List<Variant> getRequestVariants​(MetadataService metadataService)
        Returns a list of request variants based on the annotation value.
        Parameters:
        metadataService - The metadata service to use.
        Returns:
        A list of response variants.
      • getRestletMethod

        public Method getRestletMethod()
        Returns the matching Restlet method.
        Returns:
        The matching Restlet method.