Class Token.Tag

java.lang.Object
org.jsoup.parser.Token
org.jsoup.parser.Token.Tag
Direct Known Subclasses:
Token.EndTag, Token.StartTag
Enclosing class:
Token

abstract static class Token.Tag extends Token
  • Field Details

    • tagName

      protected String tagName
    • normalName

      protected String normalName
    • pendingAttributeName

      private String pendingAttributeName
    • pendingAttributeValue

      private StringBuilder pendingAttributeValue
    • pendingAttributeValueS

      private String pendingAttributeValueS
    • hasEmptyAttributeValue

      private boolean hasEmptyAttributeValue
    • hasPendingAttributeValue

      private boolean hasPendingAttributeValue
    • selfClosing

      boolean selfClosing
    • attributes

      Attributes attributes
  • Constructor Details

    • Tag

      Tag()
  • Method Details

    • reset

      Token.Tag reset()
      Description copied from class: Token
      Reset the data represent by this token, for reuse. Prevents the need to create transfer objects for every piece of data, which immediately get GCed.
      Specified by:
      reset in class Token
    • newAttribute

      final void newAttribute()
    • finaliseTag

      final void finaliseTag()
    • name

      final String name()
      Preserves case
    • normalName

      final String normalName()
      Lower case
    • name

      final Token.Tag name(String name)
    • isSelfClosing

      final boolean isSelfClosing()
    • getAttributes

      final Attributes getAttributes()
    • appendTagName

      final void appendTagName(String append)
    • appendTagName

      final void appendTagName(char append)
    • appendAttributeName

      final void appendAttributeName(String append)
    • appendAttributeName

      final void appendAttributeName(char append)
    • appendAttributeValue

      final void appendAttributeValue(String append)
    • appendAttributeValue

      final void appendAttributeValue(char append)
    • appendAttributeValue

      final void appendAttributeValue(char[] append)
    • appendAttributeValue

      final void appendAttributeValue(int[] appendCodepoints)
    • setEmptyAttributeValue

      final void setEmptyAttributeValue()
    • ensureAttributeValue

      private void ensureAttributeValue()