org.htmlparser.tags
Class ScriptTag
- Cloneable, Node, Serializable, Tag
A script tag.
protected String | mCode - Script code if different from the page contents.
|
String[] | getEndTagEnders() - Return the set of end tag names that cause this tag to finish.
|
String[] | getIds() - Return the set of names handled by this tag.
|
String | getLanguage() - Get the
LANGUAGE attribute, if any.
|
String | getScriptCode() - Get the script code.
|
String | getType() - Get the
TYPE attribute, if any.
|
protected void | putChildrenInto(StringBuffer sb, boolean verbatim) - Places the script contents into the provided buffer.
|
void | setLanguage(String language) - Set the language of the script tag.
|
void | setScriptCode(String code) - Set the code contents.
|
void | setType(String type) - Set the mime type of the script tag.
|
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 , putChildrenInto , putEndTagInto , removeChild , searchByName , searchFor , searchFor , searchFor , searchFor , setEndTag , toHtml , toPlainTextString , toString , toString |
accept , breaksFlow , getAttribute , getAttributeEx , getAttributesEx , getEndTag , getEndTagEnders , getEnders , getEndingLineNumber , getIds , getRawTagName , getStartingLineNumber , getTagBegin , getTagEnd , getTagName , getText , getThisScanner , isEmptyXmlTag , isEndTag , removeAttribute , setAttribute , setAttribute , setAttribute , setAttributeEx , setAttributesEx , setEmptyXmlTag , setEndTag , setTagBegin , setTagEnd , setTagName , setText , setThisScanner , toHtml , toPlainTextString , toString |
accept , clone , collectInto , doSemanticAction , getChildren , getEndPosition , getFirstChild , getLastChild , getNextSibling , getPage , getParent , getPreviousSibling , getStartPosition , getText , setChildren , setEndPosition , setPage , setParent , setStartPosition , setText , toHtml , toHtml , toPlainTextString , toString |
mCode
protected String mCode
Script code if different from the page contents.
ScriptTag
public ScriptTag()
Create a new script tag.
getEndTagEnders
public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
- getEndTagEnders in interface Tag
- getEndTagEnders in interface TagNode
- The names of following end tags that stop further scanning.
getIds
public String[] getIds()
Return the set of names handled by this tag.
- getIds in interface Tag
- getIds in interface TagNode
- The names to be matched that create tags of this type.
getLanguage
public String getLanguage()
Get the LANGUAGE
attribute, if any.
getScriptCode
public String getScriptCode()
Get the script code.
Normally this is the contents of the children, but in the rare case that
the script is encoded, this is the plaintext decrypted code.
- The plaintext or overridden code contents of the tag.
getType
public String getType()
Get the TYPE
attribute, if any.
putChildrenInto
protected void putChildrenInto(StringBuffer sb,
boolean verbatim)
Places the script contents into the provided buffer.
- putChildrenInto in interface CompositeTag
sb
- The buffer to add the script to.verbatim
- If true
return as close to the original
page text as possible.
setLanguage
public void setLanguage(String language)
Set the language of the script tag.
language
- The new language value.
setScriptCode
public void setScriptCode(String code)
Set the code contents.
code
- The new code contents of this tag.
setType
public void setType(String type)
Set the mime type of the script tag.
type
- The new mime type.
toString
public String toString()
Print the contents of the script tag suitable for debugging display.
- toString in interface Node
- toString in interface CompositeTag
- The script language or type and code as a string.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |