|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cpptools.preprocessor.AbstractTokenFilter
public abstract class AbstractTokenFilter
Captures filter common behaviours.
Constructor Summary | |
---|---|
AbstractTokenFilter(java.util.Stack<Token> buffer,
java.lang.String name,
java.lang.String value)
Create an abstract token filter. |
Method Summary | |
---|---|
protected void |
insert(Token location)
Insert filtered tokens into the token flow. |
boolean |
matches(java.lang.String name)
Test if the filter name matches a given name. |
protected void |
undo(Token token,
Token next)
Put both tokens back into the flow. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cpptools.preprocessor.TokenFilter |
---|
process |
Constructor Detail |
---|
public AbstractTokenFilter(java.util.Stack<Token> buffer, java.lang.String name, java.lang.String value)
buffer
- the token stack where to output filtered tokensname
- the name of the filtervalue
- the raw value of the filtering resultMethod Detail |
---|
protected final void undo(Token token, Token next)
token
- the head of the flownext
- the token following the headprotected final void insert(Token location)
location
- the location of the insertionpublic final boolean matches(java.lang.String name)
matches
in interface TokenFilter
name
- the name to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |