Package nu.validator.htmlparser.impl
Class StateSnapshot<T>
java.lang.Object
nu.validator.htmlparser.impl.StateSnapshot<T>
- All Implemented Interfaces:
TreeBuilderState<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Returns the deepTreeSurrogateParent.Returns the formPointer.Returns the headPointer.Returns the listOfActiveFormattingElements.int
Return the length of the list of active formatting elements.int
getMode()
Returns the mode.int
Returns the originalMode.getStack()
Returns the stack.int
Return the length of the stack.boolean
Returns the framesetOk.boolean
Returns the needToDropLF.boolean
isQuirks()
Returns the quirks.
-
Field Details
-
stack
-
listOfActiveFormattingElements
-
formPointer
-
headPointer
-
deepTreeSurrogateParent
-
mode
private final int mode -
originalMode
private final int originalMode -
framesetOk
private final boolean framesetOk -
needToDropLF
private final boolean needToDropLF -
quirks
private final boolean quirks
-
-
Constructor Details
-
StateSnapshot
StateSnapshot(StackNode<T>[] stack, StackNode<T>[] listOfActiveFormattingElements, T formPointer, T headPointer, T deepTreeSurrogateParent, int mode, int originalMode, boolean framesetOk, boolean needToDropLF, boolean quirks) - Parameters:
stack
-listOfActiveFormattingElements
-formPointer
-mode
-originalMode
-needToDropLF
-quirks
-foreignFlag
-
-
-
Method Details
-
getStack
Description copied from interface:TreeBuilderState
Returns the stack.- Specified by:
getStack
in interfaceTreeBuilderState<T>
- Returns:
- the stack
- See Also:
-
getListOfActiveFormattingElements
Description copied from interface:TreeBuilderState
Returns the listOfActiveFormattingElements.- Specified by:
getListOfActiveFormattingElements
in interfaceTreeBuilderState<T>
- Returns:
- the listOfActiveFormattingElements
- See Also:
-
getFormPointer
Description copied from interface:TreeBuilderState
Returns the formPointer.- Specified by:
getFormPointer
in interfaceTreeBuilderState<T>
- Returns:
- the formPointer
- See Also:
-
getHeadPointer
Returns the headPointer.- Specified by:
getHeadPointer
in interfaceTreeBuilderState<T>
- Returns:
- the headPointer
-
getDeepTreeSurrogateParent
Returns the deepTreeSurrogateParent.- Specified by:
getDeepTreeSurrogateParent
in interfaceTreeBuilderState<T>
- Returns:
- the deepTreeSurrogateParent
-
getMode
public int getMode()Returns the mode.- Specified by:
getMode
in interfaceTreeBuilderState<T>
- Returns:
- the mode
-
getOriginalMode
public int getOriginalMode()Returns the originalMode.- Specified by:
getOriginalMode
in interfaceTreeBuilderState<T>
- Returns:
- the originalMode
-
isFramesetOk
public boolean isFramesetOk()Returns the framesetOk.- Specified by:
isFramesetOk
in interfaceTreeBuilderState<T>
- Returns:
- the framesetOk
-
isNeedToDropLF
public boolean isNeedToDropLF()Returns the needToDropLF.- Specified by:
isNeedToDropLF
in interfaceTreeBuilderState<T>
- Returns:
- the needToDropLF
-
isQuirks
public boolean isQuirks()Returns the quirks.- Specified by:
isQuirks
in interfaceTreeBuilderState<T>
- Returns:
- the quirks
-
getListOfActiveFormattingElementsLength
public int getListOfActiveFormattingElementsLength()Description copied from interface:TreeBuilderState
Return the length of the list of active formatting elements.- Specified by:
getListOfActiveFormattingElementsLength
in interfaceTreeBuilderState<T>
- Returns:
- the length of the list of active formatting elements.
- See Also:
-
getStackLength
public int getStackLength()Description copied from interface:TreeBuilderState
Return the length of the stack.- Specified by:
getStackLength
in interfaceTreeBuilderState<T>
- Returns:
- the length of the stack.
- See Also:
-
destructor
private void destructor()
-