public abstract class TransformRule
extends java.lang.Object
TypeAnalyzer
while it
traverses the program AST.
This type of source ransformation is specified with rules, each of
which defines the actions to be executed before the traversal
and after the traversal. Implementation of a rule may add
special handlers (AssignmentHandler
, ClassHandler
, etc.)
to the analyzer before the traversal, and finalize its transformation
after the traversal.
Constructor and Description |
---|
TransformRule() |
Modifier and Type | Method and Description |
---|---|
abstract void |
afterTraverse(TypeAnalyzer analyzer,
org.eclipse.jdt.core.dom.CompilationUnit root)
Execute actions after the AST is traversed by
TypeAnalyzer . |
abstract void |
beforeTraverse(TypeAnalyzer analyzer,
org.eclipse.jdt.core.dom.CompilationUnit root)
Execute actions before the AST is traversed by
TypeAnalyzer . |
public abstract void afterTraverse(TypeAnalyzer analyzer, org.eclipse.jdt.core.dom.CompilationUnit root)
TypeAnalyzer
.analyzer
- The type analyzer.root
- The root of the AST.beforeTraverse(TypeAnalyzer, CompilationUnit)
public abstract void beforeTraverse(TypeAnalyzer analyzer, org.eclipse.jdt.core.dom.CompilationUnit root)
TypeAnalyzer
.analyzer
- The type analyzer.root
- The root of the AST.afterTraverse(TypeAnalyzer, CompilationUnit)