Class JavaDocTextElement

All Implemented Interfaces:
IDocElement

public final class JavaDocTextElement extends AbstractTextElement
AST node for a text element within a doc comment.
 TextElement:
     Sequence of characters including a close comment delimiter */
 
Since:
3.31
See Also:
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
    • setText

      public void setText(String text)
      Sets the text of this node to the given value.

      The text element typically includes leading and trailing whitespace that separates it from the immediately preceding or following elements.

      Overrides:
      setText in class AbstractTextElement
      Parameters:
      text - the text of this node
      Throws:
      IllegalArgumentException - if the text is null or contains a block comment closing delimiter