Package nu.validator.htmlparser.impl
Class StackNode<T>
java.lang.Object
nu.validator.htmlparser.impl.StackNode<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) HtmlAttributes
(package private) final int
private final TaintableLocatorImpl
(package private) final String
(package private) final T
(package private) final String
(package private) final String
private int
-
Constructor Summary
ConstructorsConstructorDescriptionStackNode
(int flags, String ns, String name, T node, String popName, HtmlAttributes attributes, TaintableLocatorImpl locator) Constructor for copying.StackNode
(ElementName elementName, String popName, T node, TaintableLocatorImpl locator) Constructor for SVG elements.StackNode
(ElementName elementName, T node, String popName, boolean markAsIntegrationPoint, TaintableLocatorImpl locator) Constructor for MathML.StackNode
(ElementName elementName, T node, String popName, TaintableLocatorImpl locator) The common-case HTML constructor.StackNode
(ElementName elementName, T node, HtmlAttributes attributes, TaintableLocatorImpl locator) Constructor for HTML formatting elements.StackNode
(ElementName elementName, T node, TaintableLocatorImpl locator) Short hand for well-known HTML elements. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
int
getFlags()
int
getGroup()
boolean
boolean
boolean
boolean
boolean
private static int
prepareMathFlags
(int flags, boolean markAsIntegrationPoint) private static int
prepareSvgFlags
(int flags) void
release()
void
retain()
toString()
-
Field Details
-
flags
final int flags -
name
-
popName
-
ns
-
node
-
attributes
HtmlAttributes attributes -
refcount
private int refcount -
locator
-
-
Constructor Details
-
StackNode
StackNode(int flags, String ns, String name, T node, String popName, HtmlAttributes attributes, TaintableLocatorImpl locator) Constructor for copying. This doesn't take anotherStackNode
because in C++ the caller is reponsible for reobtaining the local names from another interner.- Parameters:
flags
-ns
-name
-node
-popName
-attributes
-
-
StackNode
StackNode(ElementName elementName, T node, TaintableLocatorImpl locator) Short hand for well-known HTML elements.- Parameters:
elementName
-node
-
-
StackNode
StackNode(ElementName elementName, T node, HtmlAttributes attributes, TaintableLocatorImpl locator) Constructor for HTML formatting elements.- Parameters:
elementName
-node
-attributes
-
-
StackNode
StackNode(ElementName elementName, T node, String popName, TaintableLocatorImpl locator) The common-case HTML constructor.- Parameters:
elementName
-node
-popName
-
-
StackNode
StackNode(ElementName elementName, String popName, T node, TaintableLocatorImpl locator) Constructor for SVG elements. Note that the order of the arguments is what distinguishes this from the HTML constructor. This is ugly, but AFAICT the least disruptive way to make this work with Java's generics and without unnecessary branches. :-(- Parameters:
elementName
-popName
-node
-
-
StackNode
StackNode(ElementName elementName, T node, String popName, boolean markAsIntegrationPoint, TaintableLocatorImpl locator) Constructor for MathML.- Parameters:
elementName
-node
-popName
-markAsIntegrationPoint
-
-
-
Method Details
-
getLocator
-
getFlags
public int getFlags() -
getGroup
public int getGroup() -
isScoping
public boolean isScoping() -
isSpecial
public boolean isSpecial() -
isFosterParenting
public boolean isFosterParenting() -
isHtmlIntegrationPoint
public boolean isHtmlIntegrationPoint() -
isOptionalEndTag
public boolean isOptionalEndTag() -
prepareSvgFlags
private static int prepareSvgFlags(int flags) -
prepareMathFlags
private static int prepareMathFlags(int flags, boolean markAsIntegrationPoint) -
destructor
private void destructor() -
dropAttributes
public void dropAttributes() -
toString
-
retain
public void retain() -
release
public void release()
-