Class 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 Detail

      • 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_INLINE_TAG_COUNT

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

        public static final String TAG_PROPERTY_SNIPPET_REGION_TEXT
        Since:
        3.30
        See Also:
        Constant Field Values
    • Method Detail

      • 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.
        Parameters:
        name -
        Throws:
        UnsupportedOperationException - if this operation is used below JLS18
      • setStringValue

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

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