Package org.jsoup.parser
Enum HtmlTreeBuilderState
- java.lang.Object
-
- java.lang.Enum<HtmlTreeBuilderState>
-
- org.jsoup.parser.HtmlTreeBuilderState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HtmlTreeBuilderState>
enum HtmlTreeBuilderState extends java.lang.Enum<HtmlTreeBuilderState>
The Tree Builder's current state. Each state embodies the processing for the state, and transitions to other states.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classHtmlTreeBuilderState.Constants
-
Enum Constant Summary
Enum Constants Enum Constant Description AfterAfterBodyAfterAfterFramesetAfterBodyAfterFramesetAfterHeadBeforeHeadBeforeHtmlForeignContentInBodyInCaptionInCellInColumnGroupInFramesetInHeadInHeadNoscriptInitialInRowInSelectInSelectInTableInTableInTableBodyInTableTextText
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringnullString
-
Constructor Summary
Constructors Modifier Constructor Description privateHtmlTreeBuilderState()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private static voidhandleRawtext(Token.StartTag startTag, HtmlTreeBuilder tb)private static voidhandleRcData(Token.StartTag startTag, HtmlTreeBuilder tb)private static booleanisWhitespace(java.lang.String data)private static booleanisWhitespace(Token t)(package private) abstract booleanprocess(Token t, HtmlTreeBuilder tb)static HtmlTreeBuilderStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HtmlTreeBuilderState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Initial
public static final HtmlTreeBuilderState Initial
-
BeforeHtml
public static final HtmlTreeBuilderState BeforeHtml
-
BeforeHead
public static final HtmlTreeBuilderState BeforeHead
-
InHead
public static final HtmlTreeBuilderState InHead
-
InHeadNoscript
public static final HtmlTreeBuilderState InHeadNoscript
-
AfterHead
public static final HtmlTreeBuilderState AfterHead
-
InBody
public static final HtmlTreeBuilderState InBody
-
Text
public static final HtmlTreeBuilderState Text
-
InTable
public static final HtmlTreeBuilderState InTable
-
InTableText
public static final HtmlTreeBuilderState InTableText
-
InCaption
public static final HtmlTreeBuilderState InCaption
-
InColumnGroup
public static final HtmlTreeBuilderState InColumnGroup
-
InTableBody
public static final HtmlTreeBuilderState InTableBody
-
InRow
public static final HtmlTreeBuilderState InRow
-
InCell
public static final HtmlTreeBuilderState InCell
-
InSelect
public static final HtmlTreeBuilderState InSelect
-
InSelectInTable
public static final HtmlTreeBuilderState InSelectInTable
-
AfterBody
public static final HtmlTreeBuilderState AfterBody
-
InFrameset
public static final HtmlTreeBuilderState InFrameset
-
AfterFrameset
public static final HtmlTreeBuilderState AfterFrameset
-
AfterAfterBody
public static final HtmlTreeBuilderState AfterAfterBody
-
AfterAfterFrameset
public static final HtmlTreeBuilderState AfterAfterFrameset
-
ForeignContent
public static final HtmlTreeBuilderState ForeignContent
-
-
Method Detail
-
values
public static HtmlTreeBuilderState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HtmlTreeBuilderState c : HtmlTreeBuilderState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HtmlTreeBuilderState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
process
abstract boolean process(Token t, HtmlTreeBuilder tb)
-
isWhitespace
private static boolean isWhitespace(Token t)
-
isWhitespace
private static boolean isWhitespace(java.lang.String data)
-
handleRcData
private static void handleRcData(Token.StartTag startTag, HtmlTreeBuilder tb)
-
handleRawtext
private static void handleRawtext(Token.StartTag startTag, HtmlTreeBuilder tb)
-
-