|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.AbstractCompilationUnitAnalysis
public abstract class AbstractCompilationUnitAnalysis
An ICrystal analysis which analyses each compilation unit as a whole.
Constructor Summary | |
---|---|
AbstractCompilationUnitAnalysis()
|
Method Summary | |
---|---|
void |
afterAllCompilationUnits()
Inform the analysis that all compilation units have been analyzed. |
abstract void |
analyzeCompilationUnit(CompilationUnit d)
Invoked once for each compilation unit. |
void |
beforeAllCompilationUnits()
Inform the analysis that the analysis process is about to begin. |
IAnalysisInput |
getInput()
|
String |
getName()
|
IAnalysisReporter |
getReporter()
|
void |
runAnalysis(IAnalysisReporter reporter,
IAnalysisInput input,
ITypeRoot compUnit,
CompilationUnit rootNode)
This implementation of runAnalysis will set the reporter and input and then call the abstract method $analyzeCompilationUnit. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCompilationUnitAnalysis()
Method Detail |
---|
public String getName()
getName
in interface ICrystalAnalysis
public void runAnalysis(IAnalysisReporter reporter, IAnalysisInput input, ITypeRoot compUnit, CompilationUnit rootNode)
runAnalysis
in interface ICrystalAnalysis
compUnit
- The ITypeRoot that represents the .java or .class file we are analyzingreporter
- The IAnalysisReport that allows an analysis to report issues.rootNode
- The ASTNode which represents this compilation unit.input
- The input to this analysis.public 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 abstract void analyzeCompilationUnit(CompilationUnit d)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |