org.nuiton.util
Class StreamKeywordTokenizer
java.lang.Object
java.io.StreamTokenizer
org.nuiton.util.StreamKeywordTokenizer
public class StreamKeywordTokenizer
- extends java.io.StreamTokenizer
TODO What is it for ?
| Fields inherited from class java.io.StreamTokenizer |
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype |
| Methods inherited from class java.io.StreamTokenizer |
commentChar, eolIsSignificant, lineno, lowerCaseMode, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TT_KEYWORD
public static final int TT_KEYWORD
- See Also:
- Constant Field Values
TT_VARIABLE
public static final int TT_VARIABLE
- See Also:
- Constant Field Values
keywords
protected java.util.HashSet<java.lang.String> keywords
lowerCaseKeyword
protected boolean lowerCaseKeyword
quoteCharVariable
protected int quoteCharVariable
StreamKeywordTokenizer
public StreamKeywordTokenizer(java.io.Reader in)
nextToken
public int nextToken()
throws java.io.IOException
- Overrides:
nextToken in class java.io.StreamTokenizer
- Throws:
java.io.IOException
addKeyword
public void addKeyword(java.lang.String keyword)
lowerCaseKeyword
public void lowerCaseKeyword(boolean fl)
- This method must be call before addKeyword.
- Parameters:
fl -
quoteCharVariable
public void quoteCharVariable(int c)
Copyright © 2004-2010 CodeLutin. All Rights Reserved.