Class TagProperty

java.lang.Object
org.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.TagProperty
All Implemented Interfaces:
IDocElement

public class TagProperty extends ASTNode implements IDocElement
TagProperty pattern AST node type.
 TagProperty:
      Name
      String Value
      Node Value
 
Since:
3.30
  • Field Details

    • NAME_PROPERTY

      public static final SimplePropertyDescriptor NAME_PROPERTY
      The "name" structural property of this node type (added in JEP 413).
    • STRING_VALUE_PROPERTY

      public static final SimplePropertyDescriptor STRING_VALUE_PROPERTY
      The "string_value" structural property of this node type . (added in JEP 413).
    • NODE_VALUE_PROPERTY

      public static final ChildPropertyDescriptor NODE_VALUE_PROPERTY
      The "node_value" structural property of this node type . (added in JEP 413).
    • TAG_PROPERTY_SNIPPET_IS_VALID

      public static final String TAG_PROPERTY_SNIPPET_IS_VALID
      See Also:
    • TAG_PROPERTY_SNIPPET_ERROR

      public static final String TAG_PROPERTY_SNIPPET_ERROR
      See Also:
    • TAG_PROPERTY_SNIPPET_ID

      public static final String TAG_PROPERTY_SNIPPET_ID
      Since:
      3.30
      See Also:
    • TAG_PROPERTY_SNIPPET_INLINE_TAG_COUNT

      public static final String TAG_PROPERTY_SNIPPET_INLINE_TAG_COUNT
      Since:
      3.30
      See Also:
    • TAG_PROPERTY_SNIPPET_REGION_TEXT

      public static final String TAG_PROPERTY_SNIPPET_REGION_TEXT
      Since:
      3.30
      See Also:
  • 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)
    • getName

      public String getName()
      Returns the name of this tag property.
      Returns:
      the name
      Throws:
      UnsupportedOperationException - if this operation is used below than JLS18
    • getStringValue

      public String getStringValue()
      Returns the string value of this tag property.
      Returns:
      the string_value
      Throws:
      UnsupportedOperationException - if this operation is used below than JLS18
    • getNodeValue

      public ASTNode getNodeValue()
      Returns the node value of this tag property.
      Returns:
      the node_value
      Throws:
      UnsupportedOperationException - if this operation is used below than JLS18
    • setName

      public void setName(String name)
      Sets the name of this tag property.
      Throws:
      UnsupportedOperationException - if this operation is used below JLS18
    • setStringValue

      public void setStringValue(String value)
      Sets the string value of this tag property.
      Throws:
      UnsupportedOperationException - if this operation is used below JLS18
    • setNodeValue

      public void setNodeValue(ASTNode value)
      Sets the node value of this tag property.
      Throws:
      UnsupportedOperationException - if this operation is used below JLS18