Class LabelsNodeList

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.Callable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.ExternalArrayData, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    class LabelsNodeList
    extends NodeList
    A special NodeList to implement .labels property.
    • Constructor Detail

      • LabelsNodeList

        LabelsNodeList​(DomElement domeNode)
        Creates an instance.
        Parameters:
        domeNode - the DomNode
    • Method Detail

      • getElements

        public java.util.List<DomNode> getElements()
        This is overridden instead of #computeElements() in order to prevent caching at all.

        Gets the HTML elements from cache or retrieve them at first call.

        Overrides:
        getElements in class AbstractList
        Returns:
        the list of HtmlElement contained in this collection