|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcpptools.preprocessor.AbstractTokenFilter
cpptools.preprocessor.Macro
public final class Macro
Manages macro pre-processing.
| Constructor Summary | |
|---|---|
Macro(TokenProvider provider,
java.util.Stack<Token> buffer,
java.lang.String name,
java.lang.String value)
Create a macro. |
|
| Method Summary | |
|---|---|
boolean |
process(Token token)
Trigger filtering based on a given token. |
| Methods inherited from class cpptools.preprocessor.AbstractTokenFilter |
|---|
insert, matches, undo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Macro(TokenProvider provider,
java.util.Stack<Token> buffer,
java.lang.String name,
java.lang.String value)
provider - the token provider to retrieve subsequent tokensbuffer - the token stack where to output filtered tokensname - the define symbolvalue - the define value| Method Detail |
|---|
public boolean process(Token token)
token - the head of the token flow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||