Klasse TextElement

Alle implementierten Schnittstellen:
IDocElement

public final class TextElement extends AbstractTextElement
AST node for a text element within a doc comment.
 TextElement:
     Sequence of characters not including a close comment delimiter */
 
Seit:
3.0
Siehe auch:
  • Felddetails

  • Methodendetails

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameter:
      apiLevel - the API level; one of the AST.JLS* constants
      Gibt zurück:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Seit:
      3.0
    • 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. The text element must not include a block comment closing delimiter "*"+"/".

      Setzt außer Kraft:
      setText in Klasse AbstractTextElement
      Parameter:
      text - the text of this node
      Löst aus:
      IllegalArgumentException - if the text is null or contains a block comment closing delimiter