|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.internal.Crystal
public class Crystal
Provides the ability to run the analyses. Provides output mechanisms for both the Static Analysis developer and the Static Analysis user. Also maintains several useful data structures. They can be accessed through several "get*" methods.
Field Summary | |
---|---|
static String |
MARKER_ATTR_ANALYSIS
Currently unused marker attribute for markers of type MARKER_DEFAULT . |
static String |
MARKER_DEFAULT
Currently unused default marker type for Crystal. |
Constructor Summary | |
---|---|
Crystal()
|
Method Summary | |
---|---|
List<ICrystalAnalysis> |
getAnalyses()
|
ASTNode |
getASTNodeFromBinding(IBinding binding)
Retrieves the declaring ASTNode of the binding. |
void |
registerAnalysis(ICrystalAnalysis analysis)
Registers an analysis with the framework. |
void |
registerAnnotation(String annotationName,
Class<? extends ICrystalAnnotation> annoClass,
boolean parseAsMeta)
|
void |
registerAnnotationsWithDatabase(AnnotationDatabase annoDB)
Register all of the annotations in the given annotation registry with the given annotation database. |
void |
runAnalyses(IRunCrystalCommand command,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MARKER_DEFAULT
IMarker
,
Constant Field Valuespublic static final String MARKER_ATTR_ANALYSIS
MARKER_DEFAULT
.
Constructor Detail |
---|
public Crystal()
Method Detail |
---|
public void registerAnalysis(ICrystalAnalysis analysis)
analysis
- the analysis to be usedpublic ASTNode getASTNodeFromBinding(IBinding binding)
binding
- the binding from which you want the declaration
public List<ICrystalAnalysis> getAnalyses()
public void runAnalyses(IRunCrystalCommand command, org.eclipse.core.runtime.IProgressMonitor monitor)
public void registerAnnotationsWithDatabase(AnnotationDatabase annoDB)
annoDB
- public void registerAnnotation(String annotationName, Class<? extends ICrystalAnnotation> annoClass, boolean parseAsMeta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |