cpptools.preprocessor
Class Define

java.lang.Object
  extended by cpptools.preprocessor.AbstractTokenFilter
      extended by cpptools.preprocessor.Define
All Implemented Interfaces:
TokenFilter

public final class Define
extends AbstractTokenFilter

Manages define pre-proprecessing.

Author:
Mathieu Champlon

Constructor Summary
Define(java.util.Stack<Token> buffer, java.lang.String name, java.lang.String value)
          Create a define definition.
 
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

Define

public Define(java.util.Stack<Token> buffer,
              java.lang.String name,
              java.lang.String value)
Create a define definition.

Parameters:
buffer - the token stack where to output filtered tokens
name - the define symbol
value - the define value
Method Detail

process

public boolean process(Token token)
Trigger filtering based on a given token.

Parameters:
token - the head of the token flow
Returns:
whether the filter has been applied or not


Copyright © 2006-2007 null. All Rights Reserved.