|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webtester.packages.parser.javaScriptParser
This class tokenizes javascript so that regexes can be created for it. The HTML parser used by webtester doesn't do this very well, which is why this was written.
| Field Summary | |
private java.util.ArrayList |
aJavaScriptContent
Contains the parsed javascript content. |
private int |
iCounter
Index used to retrieve parsed javascript elements. |
private java.lang.String |
sHTMLContent
The HTML content to examine. |
| Constructor Summary | |
javaScriptParser()
|
|
| Method Summary | |
boolean |
containsJavaScript()
Determines if the HTML contains javascript tokens. |
java.lang.String |
getNextToken()
Return the next parsed javascript token. |
void |
setHTMLContent(java.lang.String sStr)
Sets the HTML content to examine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String sHTMLContent
private java.util.ArrayList aJavaScriptContent
private int iCounter
| Constructor Detail |
public javaScriptParser()
| Method Detail |
public void setHTMLContent(java.lang.String sStr)
sStr - the HTML contentpublic boolean containsJavaScript()
public java.lang.String getNextToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||