Class HTMLCollectionFrames

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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 HTMLCollectionFrames extends HTMLCollection
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
  • Constructor Details

    • HTMLCollectionFrames

      HTMLCollectionFrames(HtmlPage page)
  • Method Details

    • getScriptableForElement

      protected org.htmlunit.corejs.javascript.Scriptable getScriptableForElement(Object obj)
      Description copied from class: AbstractList
      Gets the scriptable for the provided element that may already be the right scriptable.
      Overrides:
      getScriptableForElement in class AbstractList
      Parameters:
      obj - the object for which to get the scriptable
      Returns:
      the scriptable
    • getWithPreemption

      protected Object getWithPreemption(String name)
      Description copied from class: AbstractList
      Returns the element or elements that match the specified key. If it is the name of a property, the property value is returned. If it is the id of an element in the array, that element is returned. Finally, if it is the name of an element or elements in the array, then all those elements are returned. Otherwise, Scriptable.NOT_FOUND is returned.

      Called by HtmlUnitScriptable.get(String, Scriptable) to allow retrieval of the property before the prototype chain is searched.

      IMPORTANT: This method is invoked *very* often by Rhino. If you override this method, the implementation needs to be as fast as possible!

      Overrides:
      getWithPreemption in class AbstractList
      Parameters:
      name - the property name
      Returns:
      Scriptable.NOT_FOUND if not found