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
abstract class Token extends java.lang.ObjectParse tokens for the Tokeniser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classToken.CData(package private) static classToken.Character(package private) static classToken.Comment(package private) static classToken.Doctype(package private) static classToken.EndTag(package private) static classToken.EOF(package private) static classToken.StartTag(package private) static classToken.Tagstatic classToken.TokenType
-
Field Summary
Fields Modifier and Type Field Description (package private) Token.TokenTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateToken()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) Token.CharacterasCharacter()(package private) Token.CommentasComment()(package private) Token.DoctypeasDoctype()(package private) Token.EndTagasEndTag()(package private) Token.StartTagasStartTag()(package private) booleanisCData()(package private) booleanisCharacter()(package private) booleanisComment()(package private) booleanisDoctype()(package private) booleanisEndTag()(package private) booleanisEOF()(package private) booleanisStartTag()(package private) abstract Tokenreset()Reset the data represent by this token, for reuse.(package private) static voidreset(java.lang.StringBuilder sb)(package private) java.lang.StringtokenType()
-
-
-
Field Detail
-
type
Token.TokenType type
-
-
Method Detail
-
tokenType
java.lang.String tokenType()
-
reset
abstract Token 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
static void reset(java.lang.StringBuilder sb)
-
isDoctype
final boolean isDoctype()
-
asDoctype
final Token.Doctype asDoctype()
-
isStartTag
final boolean isStartTag()
-
asStartTag
final Token.StartTag asStartTag()
-
isEndTag
final boolean isEndTag()
-
asEndTag
final Token.EndTag asEndTag()
-
isComment
final boolean isComment()
-
asComment
final Token.Comment asComment()
-
isCharacter
final boolean isCharacter()
-
isCData
final boolean isCData()
-
asCharacter
final Token.Character asCharacter()
-
isEOF
final boolean isEOF()
-
-