org.htmlparser.tags
public class ScriptTag extends CompositeTag
Field Summary | |
---|---|
protected String | mCode
Script code if different from the page contents. |
Constructor Summary | |
---|---|
ScriptTag()
Create a new script tag. |
Method Summary | |
---|---|
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. |
Returns: The names of following end tags that stop further scanning.
Returns: The names to be matched that create tags of this type.
LANGUAGE
attribute, if any.Returns: The scripting language.
Returns: The plaintext or overridden code contents of the tag.
TYPE
attribute, if any.Returns: The script mime type.
Parameters: verbatim If true
return as close to the original
page text as possible. sb The buffer to add the script to.
Parameters: language The new language value.
Parameters: code The new code contents of this tag.
Parameters: type The new mime type.
Returns: The script language or type and code as a string.
HTML Parser is an open source library released under LGPL. | |