Package org.jsoup.parser
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jsoup.parser.Token
Token.CData, Token.Character, Token.Comment, Token.Doctype, Token.EndTag, Token.EOF, Token.StartTag, Token.Tag, Token.TokenType
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Attributes
private boolean
private boolean
protected String
private String
private StringBuilder
private String
(package private) boolean
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final void
appendAttributeName
(char append) (package private) final void
appendAttributeName
(String append) (package private) final void
appendAttributeValue
(char append) (package private) final void
appendAttributeValue
(char[] append) (package private) final void
appendAttributeValue
(int[] appendCodepoints) (package private) final void
appendAttributeValue
(String append) (package private) final void
appendTagName
(char append) (package private) final void
appendTagName
(String append) private void
(package private) final void
(package private) final Attributes
(package private) final boolean
(package private) final String
name()
Preserves case(package private) final Token.Tag
(package private) final void
(package private) final String
Lower case(package private) Token.Tag
reset()
Reset the data represent by this token, for reuse.(package private) final void
Methods inherited from class org.jsoup.parser.Token
asCharacter, asComment, asDoctype, asEndTag, asStartTag, isCData, isCharacter, isComment, isDoctype, isEndTag, isEOF, isStartTag, reset, tokenType
-
Field Details
-
tagName
-
normalName
-
pendingAttributeName
-
pendingAttributeValue
-
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. -
newAttribute
final void newAttribute() -
finaliseTag
final void finaliseTag() -
name
Preserves case -
normalName
Lower case -
name
-
isSelfClosing
final boolean isSelfClosing() -
getAttributes
-
appendTagName
-
appendTagName
final void appendTagName(char append) -
appendAttributeName
-
appendAttributeName
final void appendAttributeName(char append) -
appendAttributeValue
-
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()
-