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, parentmDefaultCompositeScanner, mEndTagbreakTags, 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, toHtmlaccept, 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, toStringclone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbreaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEnders, getEndingLineNumber, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScannerprotected java.lang.String mCode
public java.lang.String[] getIds()
public java.lang.String[] getEndTagEnders()
getEndTagEnders in interface TaggetEndTagEnders in class TagNodepublic 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 CompositeTagverbatim - 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 NodetoString in class CompositeTagHTML Parser is an open source library released under LGPL.