Package org.jsoup.parser
Class Token
java.lang.Object
org.jsoup.parser.Token
- Direct Known Subclasses:
Token.Character
,Token.Comment
,Token.Doctype
,Token.EOF
,Token.Tag
Parse tokens for the Tokeniser.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) static class
(package private) static final class
(package private) static final class
(package private) static final class
(package private) static final class
(package private) static final class
(package private) static class
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final Token.Character
(package private) final Token.Comment
(package private) final Token.Doctype
(package private) final Token.EndTag
asEndTag()
(package private) final Token.StartTag
(package private) final boolean
isCData()
(package private) final boolean
(package private) final boolean
(package private) final boolean
(package private) final boolean
isEndTag()
(package private) final boolean
isEOF()
(package private) final boolean
(package private) abstract Token
reset()
Reset the data represent by this token, for reuse.(package private) static void
reset
(StringBuilder sb) (package private) String
-
Field Details
-
type
Token.TokenType type
-
-
Constructor Details
-
Token
private Token()
-
-
Method Details
-
tokenType
String tokenType() -
reset
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. -
reset
-
isDoctype
final boolean isDoctype() -
asDoctype
-
isStartTag
final boolean isStartTag() -
asStartTag
-
isEndTag
final boolean isEndTag() -
asEndTag
-
isComment
final boolean isComment() -
asComment
-
isCharacter
final boolean isCharacter() -
isCData
final boolean isCData() -
asCharacter
-
isEOF
final boolean isEOF()
-