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,Token.XmlDecl
- 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, Token.XmlDecl -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Attributesprivate final TokenData(package private) int(package private) int(package private) int(package private) intprivate final TokenDataprivate booleanprivate static final intprotected String(package private) booleanprotected TokenData(package private) final boolean(package private) final TreeBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidappendAttributeName(char append, int startPos, int endPos) (package private) final voidappendAttributeName(String append, int startPos, int endPos) (package private) final voidappendAttributeValue(char append, int startPos, int endPos) (package private) final voidappendAttributeValue(int[] appendCodepoints, int startPos, int endPos) (package private) final voidappendAttributeValue(String append, int startPos, int endPos) (package private) final voidappendTagName(char append) (package private) final voidappendTagName(String append) private voidattrNamePos(int startPos, int endPos) private voidattrValPos(int startPos, int endPos) (package private) final void(package private) final boolean(package private) final boolean(package private) final boolean(package private) final Stringname()Preserves case(package private) final Token.Tag(package private) final void(package private) final StringLower case(package private) Token.Tagreset()Reset the data represent by this token, for reuse.private void(package private) final voidabstract StringtoString()(package private) final Stringprivate voidtrackAttributeRange(String name) Methods inherited from class org.jsoup.parser.Token
asCharacter, asComment, asDoctype, asEndTag, asStartTag, asXmlDecl, endPos, endPos, isCData, isCharacter, isComment, isDoctype, isEndTag, isEOF, isStartTag, startPos, startPos, tokenType
-
Field Details
-
tagName
-
normalName
-
selfClosing
boolean selfClosing -
attributes
Attributes attributes -
attrName
-
attrValue
-
hasEmptyAttrValue
private boolean hasEmptyAttrValue -
treeBuilder
-
trackSource
final boolean trackSource -
attrNameStart
int attrNameStart -
attrNameEnd
int attrNameEnd -
attrValStart
int attrValStart -
attrValEnd
int attrValEnd -
MaxAttributes
private static final int MaxAttributes- See Also:
-
-
Constructor Details
-
Tag
Tag(Token.TokenType type, TreeBuilder treeBuilder)
-
-
Method Details
-
reset
Token.Tag reset()Description copied from class:TokenReset the data represent by this token, for reuse. Prevents the need to create transfer objects for every piece of data, which immediately get GCed. -
resetPendingAttr
private void resetPendingAttr() -
newAttribute
final void newAttribute() -
trackAttributeRange
-
hasAttributes
final boolean hasAttributes() -
hasAttributeIgnoreCase
-
finaliseTag
final void finaliseTag() -
name
Preserves case -
normalName
Lower case -
toStringName
-
name
-
isSelfClosing
final boolean isSelfClosing() -
appendTagName
-
appendTagName
final void appendTagName(char append) -
appendAttributeName
-
appendAttributeName
final void appendAttributeName(char append, int startPos, int endPos) -
appendAttributeValue
-
appendAttributeValue
final void appendAttributeValue(char append, int startPos, int endPos) -
appendAttributeValue
final void appendAttributeValue(int[] appendCodepoints, int startPos, int endPos) -
setEmptyAttributeValue
final void setEmptyAttributeValue() -
attrNamePos
private void attrNamePos(int startPos, int endPos) -
attrValPos
private void attrValPos(int startPos, int endPos) -
toString
-