public interface ClassHandler
TypeAnalyzer
.
Users may register class declaration handlers (and other kinds of supported
handlers) to the TypeAnalyzer
used to analyze Java source code.
When the analyzer detects a class declaration, it calls back those
handlers after the classes are completely traversed.
Class declaration handlers are allowed to modify the classes.
Modifier and Type | Method and Description |
---|---|
void |
enter(org.eclipse.jdt.core.dom.AnonymousClassDeclaration node,
TypeAnalyzerState state)
Enter an anonymous class declaration.
|
void |
enter(org.eclipse.jdt.core.dom.TypeDeclaration node,
TypeAnalyzerState state)
Enter a class declaration.
|
void |
exit(org.eclipse.jdt.core.dom.AnonymousClassDeclaration node,
TypeAnalyzerState state)
Exit an anonymous class declaration.
|
void |
exit(org.eclipse.jdt.core.dom.TypeDeclaration node,
TypeAnalyzerState state)
Exit a class declaration.
|
void enter(org.eclipse.jdt.core.dom.AnonymousClassDeclaration node, TypeAnalyzerState state)
node
- The anonymous class declaration to be handled.state
- The current state of the analyzer.void enter(org.eclipse.jdt.core.dom.TypeDeclaration node, TypeAnalyzerState state)
node
- The class declaration to be handled.state
- The current state of the analyzer.void exit(org.eclipse.jdt.core.dom.AnonymousClassDeclaration node, TypeAnalyzerState state)
node
- The anonymous class declaration to be handled.state
- The current state of the analyzer.void exit(org.eclipse.jdt.core.dom.TypeDeclaration node, TypeAnalyzerState state)
node
- The class declaration to be handled.state
- The current state of the analyzer.