Interface JavadocTag

    • Method Detail

      • setValue

        JavadocTag setValue​(String value)
        Sets the value of this javadoc tag. In the following examples, the value is the "foo" part:
             @param foo bar
             @return foo
         
        Parameters:
        value - the new value
        Returns:
        a reference to this model
      • getValue

        Optional<String> getValue()
        Returns the value of this javadoc tag. In the following examples, the value is the "foo" part:
             @param foo bar
             @return foo
         
        Returns:
        the value part of the tag or empty if none exists
      • setText

        JavadocTag setText​(String text)
        Sets the text of this javadoc tag. In the following examples, the text is the "bar" part:
             @param foo bar
             @return foo
         
        Parameters:
        text - the new text
        Returns:
        a reference to this model
      • getText

        Optional<String> getText()
        Returns the text of this javadoc tag. In the following examples, the text is the "bar" part:
             @param foo bar
             @return foo
         
        Returns:
        the text part of the tag or empty if none exists
      • of

        static JavadocTag of​(String name)
        Creates a new instance implementing this interface by using the default implementation.
        Parameters:
        name - the name
        Returns:
        the new instance
      • of

        static JavadocTag of​(String name,
                             String text)
        Creates a new instance implementing this interface by using the default implementation.
        Parameters:
        name - the name
        text - the text
        Returns:
        the new instance
      • of

        static JavadocTag of​(String name,
                             String value,
                             String text)
        Creates a new instance implementing this interface by using the default implementation.
        Parameters:
        name - the name
        value - the value
        text - the text
        Returns:
        the new instance