|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.AbstractCrystalMethodAnalysis
public abstract class AbstractCrystalMethodAnalysis
An ICrystalAnalysis which runs on each method (and constructor) of the class.
Constructor Summary | |
---|---|
AbstractCrystalMethodAnalysis()
|
Method Summary | |
---|---|
void |
afterAllCompilationUnits()
Inform the analysis that all compilation units have been analyzed. |
void |
afterAllMethods(ITypeRoot compUnit,
CompilationUnit rootNode)
This method is invoked once after all methods are analyzed. |
abstract void |
analyzeMethod(MethodDeclaration d)
Invoked for each method or constructor in the class. |
void |
beforeAllCompilationUnits()
Inform the analysis that the analysis process is about to begin. |
void |
beforeAllMethods(ITypeRoot compUnit,
CompilationUnit rootNode)
This method is invoked once before any methods are analyzed. |
IAnalysisInput |
getInput()
|
String |
getName()
|
IAnalysisReporter |
getReporter()
|
void |
runAnalysis(IAnalysisReporter reporter,
IAnalysisInput input,
ITypeRoot compUnit,
CompilationUnit rootNode)
beforeAllMethods(org.eclipse.jdt.core.ITypeRoot, org.eclipse.jdt.core.dom.CompilationUnit) is run before any method is analyzed.Then each method is analysed by analyzeMethod(MethodDeclaration) .Finally afterAllMethods(org.eclipse.jdt.core.ITypeRoot, org.eclipse.jdt.core.dom.CompilationUnit) is run after all methods have
been analyzed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCrystalMethodAnalysis()
Method Detail |
---|
public String getName()
getName
in interface ICrystalAnalysis
public final void runAnalysis(IAnalysisReporter reporter, IAnalysisInput input, ITypeRoot compUnit, CompilationUnit rootNode)
beforeAllMethods(org.eclipse.jdt.core.ITypeRoot, org.eclipse.jdt.core.dom.CompilationUnit)
is run before any method is analyzed.analyzeMethod(MethodDeclaration)
.afterAllMethods(org.eclipse.jdt.core.ITypeRoot, org.eclipse.jdt.core.dom.CompilationUnit)
is run after all methods have
been analyzed.
runAnalysis
in interface ICrystalAnalysis
reporter
- The object that is used to report errors. Output.input
- The input to this analysis.compUnit
- The compilation unitrootNode
- The root ASTNode of the compilation unitpublic void afterAllCompilationUnits()
ICrystalAnalysis
afterAllCompilationUnits
in interface ICrystalAnalysis
public void beforeAllCompilationUnits()
ICrystalAnalysis
beforeAllCompilationUnits
in interface ICrystalAnalysis
public IAnalysisReporter getReporter()
getReporter
in interface ICrystalAnalysis
public IAnalysisInput getInput()
getInput
in interface ICrystalAnalysis
public void beforeAllMethods(ITypeRoot compUnit, CompilationUnit rootNode)
public abstract void analyzeMethod(MethodDeclaration d)
public void afterAllMethods(ITypeRoot compUnit, CompilationUnit rootNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |