Package org.jsoup.parser
Enum Class TokeniserState
- All Implemented Interfaces:
Serializable
,Comparable<TokeniserState>
,Constable
States and transition activations for the Tokeniser.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final char[]
(package private) static final char[]
(package private) static final char[]
(package private) static final char[]
private static final char
(package private) static final char
private static final char
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
handleDataDoubleEscapeTag
(Tokeniser t, CharacterReader r, TokeniserState primary, TokeniserState fallback) private static void
handleDataEndTag
(Tokeniser t, CharacterReader r, TokeniserState elseTransition) Handles RawtextEndTagName, ScriptDataEndTagName, and ScriptDataEscapedEndTagName.(package private) abstract void
read
(Tokeniser t, CharacterReader r) private static void
readCharRef
(Tokeniser t, TokeniserState advance) private static void
readEndTag
(Tokeniser t, CharacterReader r, TokeniserState a, TokeniserState b) private static void
readRawData
(Tokeniser t, CharacterReader r, TokeniserState current, TokeniserState advance) static TokeniserState
Returns the enum constant of this class with the specified name.static TokeniserState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Data
-
CharacterReferenceInData
-
Rcdata
-
CharacterReferenceInRcdata
-
Rawtext
-
ScriptData
-
PLAINTEXT
-
TagOpen
-
EndTagOpen
-
TagName
-
RcdataLessthanSign
-
RCDATAEndTagOpen
-
RCDATAEndTagName
-
RawtextLessthanSign
-
RawtextEndTagOpen
-
RawtextEndTagName
-
ScriptDataLessthanSign
-
ScriptDataEndTagOpen
-
ScriptDataEndTagName
-
ScriptDataEscapeStart
-
ScriptDataEscapeStartDash
-
ScriptDataEscaped
-
ScriptDataEscapedDash
-
ScriptDataEscapedDashDash
-
ScriptDataEscapedLessthanSign
-
ScriptDataEscapedEndTagOpen
-
ScriptDataEscapedEndTagName
-
ScriptDataDoubleEscapeStart
-
ScriptDataDoubleEscaped
-
ScriptDataDoubleEscapedDash
-
ScriptDataDoubleEscapedDashDash
-
ScriptDataDoubleEscapedLessthanSign
-
ScriptDataDoubleEscapeEnd
-
BeforeAttributeName
-
AttributeName
-
AfterAttributeName
-
BeforeAttributeValue
-
AttributeValue_doubleQuoted
-
AttributeValue_singleQuoted
-
AttributeValue_unquoted
-
AfterAttributeValue_quoted
-
SelfClosingStartTag
-
BogusComment
-
MarkupDeclarationOpen
-
CommentStart
-
CommentStartDash
-
Comment
-
CommentEndDash
-
CommentEnd
-
CommentEndBang
-
Doctype
-
BeforeDoctypeName
-
DoctypeName
-
AfterDoctypeName
-
AfterDoctypePublicKeyword
-
BeforeDoctypePublicIdentifier
-
DoctypePublicIdentifier_doubleQuoted
-
DoctypePublicIdentifier_singleQuoted
-
AfterDoctypePublicIdentifier
-
BetweenDoctypePublicAndSystemIdentifiers
-
AfterDoctypeSystemKeyword
-
BeforeDoctypeSystemIdentifier
-
DoctypeSystemIdentifier_doubleQuoted
-
DoctypeSystemIdentifier_singleQuoted
-
AfterDoctypeSystemIdentifier
-
BogusDoctype
-
CdataSection
-
-
Field Details
-
nullChar
static final char nullChar- See Also:
-
attributeSingleValueCharsSorted
static final char[] attributeSingleValueCharsSorted -
attributeDoubleValueCharsSorted
static final char[] attributeDoubleValueCharsSorted -
attributeNameCharsSorted
static final char[] attributeNameCharsSorted -
attributeValueUnquoted
static final char[] attributeValueUnquoted -
replacementChar
private static final char replacementChar- See Also:
-
replacementStr
-
eof
private static final char eof- See Also:
-
-
Constructor Details
-
TokeniserState
private TokeniserState()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
read
-
handleDataEndTag
Handles RawtextEndTagName, ScriptDataEndTagName, and ScriptDataEscapedEndTagName. Same body impl, just different else exit transitions. -
readRawData
private static void readRawData(Tokeniser t, CharacterReader r, TokeniserState current, TokeniserState advance) -
readCharRef
-
readEndTag
-
handleDataDoubleEscapeTag
private static void handleDataDoubleEscapeTag(Tokeniser t, CharacterReader r, TokeniserState primary, TokeniserState fallback)
-