Interface CAnnotatedDescriptor

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getAnnotations()
      Get set of available annotations.
      java.lang.String getAnnotationValue​(java.lang.String name)
      Get the given annotation value.
      default java.lang.String getAnnotationValue​(net.morimekta.providence.util.ThriftAnnotation annotation)
      Get the given annotation value.
      java.lang.String getDocumentation()
      The type comment is the last block of comment written before the type declaration.
      boolean hasAnnotation​(java.lang.String name)
      Get the given annotation value.
      default boolean hasAnnotation​(net.morimekta.providence.util.ThriftAnnotation annotation)
      Get the given annotation value.
    • Method Detail

      • getDocumentation

        @Nullable
        java.lang.String getDocumentation()
        The type comment is the last block of comment written before the type declaration. Comments on the same line, after the declaration is ignored.
        Returns:
        The comment string containing all formatting (not including the comment delimiter and the leading space.
      • getAnnotations

        @Nonnull
        java.util.Set<java.lang.String> getAnnotations()
        Get set of available annotations.
        Returns:
        The annotation set.
      • hasAnnotation

        boolean hasAnnotation​(@Nonnull
                              java.lang.String name)
        Get the given annotation value.
        Parameters:
        name - Name of annotation.
        Returns:
        If the annotation is present.
      • getAnnotationValue

        @Nullable
        java.lang.String getAnnotationValue​(@Nonnull
                                            java.lang.String name)
        Get the given annotation value.
        Parameters:
        name - Name of annotation.
        Returns:
        The annotation value or null.
      • hasAnnotation

        default boolean hasAnnotation​(@Nonnull
                                      net.morimekta.providence.util.ThriftAnnotation annotation)
        Get the given annotation value.
        Parameters:
        annotation - The annotation.
        Returns:
        If the annotation is present.
      • getAnnotationValue

        @Nullable
        default java.lang.String getAnnotationValue​(@Nonnull
                                                    net.morimekta.providence.util.ThriftAnnotation annotation)
        Get the given annotation value.
        Parameters:
        annotation - The annotation.
        Returns:
        The annotation value or null.