Class ScriptElement


@TagName("script") public class ScriptElement extends Element
Script statements.
See Also:
  • Field Details

  • Constructor Details

    • ScriptElement

      protected ScriptElement()
  • Method Details

    • as

      public static ScriptElement as(Element elem)
      Assert that the given Element is compatible with this class and automatically typecast it.
    • is

      public static boolean is(JavaScriptObject o)
      Determines whether the given JavaScriptObject can be cast to this class. A null object will cause this method to return false.
    • is

      public static boolean is(Node node)
      Determine whether the given Node can be cast to this class. A null node will cause this method to return false.
    • is

      public static boolean is(Element elem)
      Determine whether the given Element can be cast to this class. A null node will cause this method to return false.
    • getDefer

      public final String getDefer()
      Indicates that the user agent can defer processing of the script.
      See Also:
    • getSrc

      public final String getSrc()
      URI designating an external script.
      See Also:
    • getText

      public final String getText()
      The script content of the element.
    • getType

      public final String getType()
      The content type of the script language.
      See Also:
    • setDefer

      public final void setDefer(String defer)
      Indicates that the user agent can defer processing of the script.
      See Also:
    • setSrc

      public final void setSrc(String src)
      URI designating an external script.
      See Also:
    • setText

      public final void setText(String text)
      The script content of the element.
    • setType

      public final void setType(String type)
      The content type of the script language.
      See Also: