public class ScriptTag extends CompositeTag
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mCode
Script code if different from the page contents.
|
mDefaultCompositeScanner, mEndTag
breakTags, mAttributes, mDefaultScanner
Constructor and Description |
---|
ScriptTag()
Create a new script tag.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
|
java.lang.String[] |
getIds()
Return the set of names handled by this tag.
|
java.lang.String |
getLanguage()
Get the
LANGUAGE attribute, if any. |
java.lang.String |
getScriptCode()
Get the script code.
|
java.lang.String |
getType()
Get the
TYPE attribute, if any. |
protected void |
putChildrenInto(java.lang.StringBuffer sb)
Places the script contents into the provided buffer.
|
void |
setLanguage(java.lang.String language)
Set the language of the script tag.
|
void |
setScriptCode(java.lang.String code)
Set the code contents.
|
void |
setType(java.lang.String type)
Set the mime type of the script tag.
|
java.lang.String |
toString()
Print the contents of the script tag suitable for debugging display.
|
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStringText, getText, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, toHtml, toPlainTextString, toString
breaksFlow, getAttribute, getAttributeEx, getAttributes, getAttributesEx, getEnders, getEndingLineNumber, getParsed, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributes, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner
clone, doSemanticAction, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, doSemanticAction, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition
protected java.lang.String mCode
public java.lang.String[] getIds()
public java.lang.String[] getEndTagEnders()
getEndTagEnders
in interface Tag
getEndTagEnders
in class TagNode
public java.lang.String getLanguage()
LANGUAGE
attribute, if any.public java.lang.String getScriptCode()
public void setScriptCode(java.lang.String code)
code
- The new code contents of this tag.public java.lang.String getType()
TYPE
attribute, if any.public void setLanguage(java.lang.String language)
language
- The new language value.public void setType(java.lang.String type)
type
- The new mime type.protected void putChildrenInto(java.lang.StringBuffer sb)
putChildrenInto
in class CompositeTag
sb
- The buffer to add the script to.public java.lang.String toString()
toString
in interface Node
toString
in class CompositeTag
HTML Parser is an open source library released under LGPL.