public class PreprocessorHintsWorker extends AbstractPatternWorker
Modifier and Type | Class and Description |
---|---|
class |
PreprocessorHintsWorker.HintsReader
Provides a service for reading preprocessor hints associated with the
current AST.
|
Modifier and Type | Field and Description |
---|---|
private PreprocessorHints |
hints
Stores the current AST's hints object.
|
resolver
Constructor and Description |
---|
PreprocessorHintsWorker()
Default constructor which calls the super-class constructor, registers
its libraries and initializes its instance members.
|
Modifier and Type | Method and Description |
---|---|
void |
visitAst(Aast ast)
Resets the current hints instance to
null each time a new
AST is visited. |
finish, getCopy, getLibrary, getSource, initialize, registerTree, resolveConstant, setLibrary
private PreprocessorHints hints
public PreprocessorHintsWorker() throws ConfigurationException
ConfigurationException
public void visitAst(Aast ast)
null
each time a new
AST is visited. This enables the lazy loading of hints files only when
needed.visitAst
in interface PatternWorker
visitAst
in class AbstractPatternWorker
ast
- The root node of the source AST about to be processed by the
pattern engine.