Record Class JavadocTree.AttrValue

java.lang.Object
java.lang.Record
io.helidon.codegen.JavadocTree.AttrValue
Record Components:
value - value
kind - kind
Enclosing interface:
JavadocTree

public static record JavadocTree.AttrValue(String value, JavadocTree.AttrValue.Kind kind) extends Record
HTML attribute value.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    io.helidon.codegen.JavadocParser.Event.AttrName
    HTML attribute name.
    static final record 
    io.helidon.codegen.JavadocParser.Event.BlockTag
    Block tag.
    static final record 
    io.helidon.codegen.JavadocParser.Event.EltStart
    HTML element start.
    static final record 
    io.helidon.codegen.JavadocParser.Event.InlineTag
    Inline tag.
    static final record 
    io.helidon.codegen.JavadocParser.Event.SelfClose
    HTML element self close.
    static final record 
    io.helidon.codegen.JavadocParser.Event.Stopper
    End of attribute or inline tag.
    static enum 
    Attribute value kind.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Constant for the empty attribute value.
    static final io.helidon.codegen.JavadocParser.Event
    Constant for JavadocParser.Event.SelfClose.
    static final io.helidon.codegen.JavadocParser.Event
    Constant for JavadocParser.Event.Stopper.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of a AttrValue record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the kind record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the value record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • EMPTY

      public static final JavadocTree.AttrValue EMPTY
      Constant for the empty attribute value.
    • STOPPER

      static final io.helidon.codegen.JavadocParser.Event STOPPER
      Constant for JavadocParser.Event.Stopper.
    • SELF_CLOSE

      static final io.helidon.codegen.JavadocParser.Event SELF_CLOSE
      Constant for JavadocParser.Event.SelfClose.
  • Constructor Details

    • AttrValue

      public AttrValue(String value, JavadocTree.AttrValue.Kind kind)
      Creates an instance of a AttrValue record class.
      Parameters:
      value - the value for the value record component
      kind - the value for the kind record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • value

      public String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component