| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcppast.ParserTokenManager
cpptools.preprocessor.PreProcessor
public final class PreProcessor
Adapts the two token management systems.
| Field Summary | 
|---|
| Fields inherited from class cppast.ParserTokenManager | 
|---|
| curChar, debugStream, input_stream, jjstrLiteralImages, lexStateNames | 
| Constructor Summary | |
|---|---|
| PreProcessor()Create an adapter. | |
| Method Summary | |
|---|---|
|  void | addDefine(java.lang.String name,
          java.lang.String value)Add a define. | 
|  void | addMacro(java.lang.String name,
         java.lang.String value)Add a macro. | 
|  Token | getNextToken() | 
|  Token | next()Retrieve the next available token. | 
|  void | reset(java.io.Reader reader)Set a new input. | 
| Methods inherited from class cppast.ParserTokenManager | 
|---|
| jjFillToken, ReInit, ReInit, setDebugStream, SwitchTo | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PreProcessor()
| Method Detail | 
|---|
public void reset(java.io.Reader reader)
reader - the input readerpublic Token next()
next in interface TokenProviderpublic Token getNextToken()
getNextToken in class ParserTokenManager
public void addDefine(java.lang.String name,
                      java.lang.String value)
name - the name of the symbolvalue - the value of the symbol
public void addMacro(java.lang.String name,
                     java.lang.String value)
name - the name of the symbolvalue - the value of the symbol| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||