Class Analyzer
- java.lang.Object
-
- com.ensoftcorp.open.commons.analyzers.Analyzer
-
- Direct Known Subclasses:
Property
public abstract class Analyzer extends java.lang.Object
A base class for implementing program analyzers- Author:
- Ben Holland
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Analyzer.Result
Just a pair class to hold a display name and the result Note: display name does not need to be unique
-
Constructor Summary
Constructors Constructor Description Analyzer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static com.ensoftcorp.atlas.core.query.Q
getAllResults(java.util.List<Analyzer.Result> results)
Returns a union of all resultsjava.lang.String[]
getAssumptions()
Returns an array of assumptions made when writing the analyzerabstract java.lang.String
getCategory()
A category to classify this analyzer underjava.lang.String[]
getCodemapStageDependencies()
Optionally specifies a set of code map stage dependenciesabstract java.lang.String
getDescription()
Returns a short description of the analyzercom.ensoftcorp.atlas.core.markup.Markup
getMarkup()
Returns markup for the analyzer resultjava.util.Map<java.awt.Color,java.lang.String>
getMarkupKey()
Returns a color key legend to interpret the markup resultsjava.lang.String
getName()
Returns a name of the analyzerjava.util.Comparator<Analyzer.Result>
getResultOrder()
Defines the sorted ordering for the results (by label)abstract java.util.List<Analyzer.Result>
getResults(com.ensoftcorp.atlas.core.query.Q context)
Return analyzer's labeled results Results are for results within a given contextint
hashCode()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getName
public java.lang.String getName()
Returns a name of the analyzer- Returns:
-
getCategory
public abstract java.lang.String getCategory()
A category to classify this analyzer under- Returns:
-
getDescription
public abstract java.lang.String getDescription()
Returns a short description of the analyzer- Returns:
-
getCodemapStageDependencies
public java.lang.String[] getCodemapStageDependencies()
Optionally specifies a set of code map stage dependencies- Returns:
-
getAssumptions
public java.lang.String[] getAssumptions()
Returns an array of assumptions made when writing the analyzer- Returns:
-
getResults
public abstract java.util.List<Analyzer.Result> getResults(com.ensoftcorp.atlas.core.query.Q context)
Return analyzer's labeled results Results are for results within a given context- Returns:
-
getResultOrder
public java.util.Comparator<Analyzer.Result> getResultOrder()
Defines the sorted ordering for the results (by label)- Returns:
-
getAllResults
public static com.ensoftcorp.atlas.core.query.Q getAllResults(java.util.List<Analyzer.Result> results)
Returns a union of all results- Returns:
-
getMarkup
public com.ensoftcorp.atlas.core.markup.Markup getMarkup()
Returns markup for the analyzer result- Returns:
-
getMarkupKey
public java.util.Map<java.awt.Color,java.lang.String> getMarkupKey()
Returns a color key legend to interpret the markup results- Returns:
-
-