JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class Plugin

    • Constructor Detail

      • Plugin

        public Plugin()
        Creates an instance.
      • Plugin

        public Plugin(String name,
         String description,
         String filename)
        Ctor initializing fields.
        Parameters:
        name - the plugin name
        description - the plugin description
        filename - the plugin filename
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • item

        public MimeType item(int index)
        Returns the item at the given index.
        Parameters:
        index - the index
        Returns:
        the item at the given position
      • getWithPreemption

        protected Object getWithPreemption(String name)

        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 HtmlUnitScriptable
        Parameters:
        name - the property name
        Returns:
        Scriptable.NOT_FOUND if not found
      • namedItem

        public MimeType namedItem(String name)
        Returns the item at the given index.
        Parameters:
        name - the item name
        Returns:
        the item with the given name
      • getLength

        public int getLength()
        Gets the array size.
        Returns:
        the number elements
      • getDescription

        public String getDescription()
        Gets the plugin's description.
        Returns:
        the description
      • getFilename

        public String getFilename()
        Gets the plugin's file name.
        Returns:
        the file name
      • getName

        public String getName()
        Gets the plugin's name.
        Returns:
        the name
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /