java.lang.Object
net.kyori.adventure.text.minimessage.internal.parser.node.ElementNode
net.kyori.adventure.text.minimessage.internal.parser.node.ValueNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
TextNode

public abstract sealed class ValueNode extends ElementNode permits TextNode
Represents a node in the tree which has a text value.
Since:
4.10.0
  • Method Details

    • value

      public String value()
      Returns the value of this text node.
      Returns:
      the value
      Since:
      4.10.0
    • token

      public Token token()
      Description copied from class: ElementNode
      Returns the token that lead to the creation of this token.
      Overrides:
      token in class ElementNode
      Returns:
      the token
    • buildToString

      public StringBuilder buildToString(StringBuilder sb, int indent)
      Description copied from class: ElementNode
      Serializes this node to a string.
      Overrides:
      buildToString in class ElementNode
      Parameters:
      sb - the string builder to serialize into
      indent - the current indent level
      Returns:
      the passed string builder, for chaining