public class ScriptTag extends CompositeTag
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
mCode |
Script code if different from the page contents.
|
children, mPage, nodeBegin, nodeEnd, parent
mDefaultCompositeScanner, mEndTag
breakTags, mAttributes, mDefaultScanner
Constructor | Description |
---|---|
ScriptTag() |
Create a new script tag.
|
Modifier and Type | Method | 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,
boolean verbatim) |
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.
|
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml
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
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEnders, getEndingLineNumber, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner
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, boolean verbatim)
putChildrenInto
in class CompositeTag
verbatim
- If true
return as close to the original
page text as possible.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.