Class BasicJAnnotatable

    • Constructor Detail

      • BasicJAnnotatable

        BasicJAnnotatable()
    • Method Detail

      • annotate

        public JAnnotation annotate​(java.lang.String type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation
      • annotate

        public JAnnotation annotate​(JType type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation
      • annotate

        public JAnnotation annotate​(java.lang.Class<? extends java.lang.annotation.Annotation> type)
        Description copied from interface: JAnnotatable
        Add an annotation.
        Specified by:
        annotate in interface JAnnotatable
        Parameters:
        type - the type of the annotation to add
        Returns:
        the new annotation