org.nuiton.util
Class StreamKeywordTokenizer
java.lang.Object
java.io.StreamTokenizer
org.nuiton.util.StreamKeywordTokenizer
public class StreamKeywordTokenizer
- extends StreamTokenizer
| Methods inherited from class java.io.StreamTokenizer |
commentChar, eolIsSignificant, lineno, lowerCaseMode, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars |
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 HashSet<String> keywords
lowerCaseKeyword
protected boolean lowerCaseKeyword
quoteCharVariable
protected int quoteCharVariable
StreamKeywordTokenizer
public StreamKeywordTokenizer(Reader in)
nextToken
public int nextToken()
throws IOException
- Overrides:
nextToken in class StreamTokenizer
- Throws:
IOException
addKeyword
public void addKeyword(String keyword)
lowerCaseKeyword
public void lowerCaseKeyword(boolean fl)
- This method must be call before addKeyword.
quoteCharVariable
public void quoteCharVariable(int c)
Copyright © 2004-2009 CodeLutin. All Rights Reserved.