|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.tools.languages.parsers.javascript.JavascriptStreamTokenizer
public class JavascriptStreamTokenizer
This class parse a Javascript file and extract one per one each token (syntaxic element).
| Constructor Summary | |
|---|---|
JavascriptStreamTokenizer(java.io.File theFile)
Class constructor. |
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
Token |
nextToken()
Extracts and returns the next token of the file. |
void |
setIgnoreWhiteSpaces(boolean ignore)
|
void |
unreadToken(Token token)
Cancel the previous token extraction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavascriptStreamTokenizer(java.io.File theFile)
throws java.io.IOException
theFile - The file to parse
java.io.IOException - Thrown if the file cannot be accessed.| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setIgnoreWhiteSpaces(boolean ignore)
setIgnoreWhiteSpaces in interface LangageStreamTokenizerpublic void unreadToken(Token token)
unreadToken in interface LangageStreamTokenizertoken - The previouly read token to replace in the tokenizer.public Token nextToken()
nextToken in interface LangageStreamTokenizer
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||