java.lang.Object
org.htmlparser.Node
org.htmlparser.tags.Tag
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.ScriptTag
- All Implemented Interfaces:
- java.io.Serializable
- public class ScriptTag
- extends CompositeTag
A HTMLScriptTag represents a JavaScript node
| Methods inherited from class org.htmlparser.tags.CompositeTag |
accept, childAt, children, collectInto, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, getChild, getChildCount, getChildren, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, putChildrenInto, putEndTagInto, putStartTagInto, searchByName, searchFor, searchFor, searchFor, toHtml, toPlainTextString |
| Methods inherited from class org.htmlparser.tags.Tag |
append, append, breaksFlow, extractWord, find, getAttribute, getAttributes, getParameter, getParsed, getTagBegin, getTagEnd, getTagEndLine, getTagLine, getTagLines, getTagName, getTagStartLine, getText, getThisScanner, isEmptyXmlTag, redoParseAttributes, scan, setAttribute, setAttributes, setEmptyXmlTag, setTagBegin, setTagEnd, setTagLine, setTagParser, setText, setThisScanner |
language
private java.lang.String language
type
private java.lang.String type
scriptCode
private java.lang.String scriptCode
ScriptTag
public ScriptTag(org.htmlparser.tags.data.TagData tagData,
org.htmlparser.tags.data.CompositeTagData compositeTagData)
- The HTMLScriptTag is constructed by providing the beginning posn, ending
posn and the tag contents.
getLanguage
public java.lang.String getLanguage()
getScriptCode
public java.lang.String getScriptCode()
getType
public java.lang.String getType()
- Overrides:
getType in class Tag
setLanguage
public void setLanguage(java.lang.String newLanguage)
- Set the language of the javascript tag
setType
public void setType(java.lang.String newType)
- Set the type of the javascript node
toString
public java.lang.String toString()
- Print the contents of the javascript node
- Overrides:
toString in class Tag