public abstract class BasicTypeProcessor extends AbstractTypeProcessor
Modifier and Type | Field and Description |
---|---|
protected com.sun.source.tree.CompilationUnitTree |
currentRoot
The source tree that's being scanned.
|
Constructor and Description |
---|
BasicTypeProcessor() |
Modifier and Type | Method and Description |
---|---|
protected abstract com.sun.source.util.TreePathScanner<?,?> |
createTreePathScanner(com.sun.source.tree.CompilationUnitTree root)
Create a TreePathScanner at the given root.
|
void |
typeProcess(javax.lang.model.element.TypeElement e,
com.sun.source.util.TreePath p)
Visit the tree path for the type element.
|
init, process, typeProcessingOver, typeProcessingStart
protected com.sun.source.tree.CompilationUnitTree currentRoot
protected abstract com.sun.source.util.TreePathScanner<?,?> createTreePathScanner(com.sun.source.tree.CompilationUnitTree root)
root
- where to start the tree traversalpublic void typeProcess(javax.lang.model.element.TypeElement e, com.sun.source.util.TreePath p)
typeProcess
in class AbstractTypeProcessor
e
- element of the analyzed classp
- the tree path to the element, with the leaf being a ClassTree