org.nuiton.util
Class StreamKeywordTokenizer

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by org.nuiton.util.StreamKeywordTokenizer

public class StreamKeywordTokenizer
extends StreamTokenizer


Field Summary
protected  HashSet<String> keywords
           
protected  boolean lowerCaseKeyword
           
protected  int quoteCharVariable
           
static int TT_KEYWORD
           
static int TT_VARIABLE
           
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
StreamKeywordTokenizer(Reader in)
           
 
Method Summary
 void addKeyword(String keyword)
           
 void lowerCaseKeyword(boolean fl)
          This method must be call before addKeyword.
 int nextToken()
           
 void quoteCharVariable(int c)
           
 
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
 

Field Detail

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
Constructor Detail

StreamKeywordTokenizer

public StreamKeywordTokenizer(Reader in)
Method Detail

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.