|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement
org.eclipse.tptp.platform.analysis.core.rule.AbstractAnalysisRule
This class provides common functionality for most analysis rules. Any methods here can be overridden by derivatives of this class
| Field Summary |
|---|
| Fields inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
CATEGORY_ELEMENT_TYPE, COMBO_VALUE, DETAIL_PROVIDER, PLUGIN_PROP_CATEGORY, PLUGIN_PROP_CLASS, PLUGIN_PROP_CONFIGURATION, PLUGIN_PROP_DESCRIPTION, PLUGIN_PROP_HELP, PLUGIN_PROP_ICON, PLUGIN_PROP_ID, PLUGIN_PROP_LABEL, PLUGIN_PROP_MANAGER, PLUGIN_PROP_PROVIDER, PLUGIN_PROP_QUICKFIX_ICON, PLUGIN_PROP_RESULT_VIEW_ID, PLUGIN_PROP_SEVERITY, PLUGIN_PROP_VIEWER, PROVIDER_ELEMENT_TYPE, PROVIDER_MANAGER_ELEMENT_TYPE, RESULT_ELEMENT_TYPE, RULE_ELEMENT_TYPE |
| Constructor Summary | |
|---|---|
protected |
AbstractAnalysisRule()
Constructor |
protected |
AbstractAnalysisRule(int type)
|
| Method Summary | |
|---|---|
void |
addHistoryResultSet(java.lang.String historyId,
AbstractAnalysisResult result)
Add a new result to the history. |
abstract void |
analyze(AnalysisHistory history)
Run the analysis portion of the rule to generate results for any matching data |
java.lang.String |
getIconName()
|
java.lang.String |
getLabelWithParameters()
|
java.lang.String |
getLabelWithVariables()
Deprecated. use getLabelWithParameters() |
java.util.List |
getOwnedElements()
|
IAnalysisQuickFix |
getQuickFix(java.lang.String newId)
|
int |
getQuickFixCount()
|
java.util.Iterator |
getQuickFixIterator()
Return an iterator that can be used to crawl a list of quickfix id strings related to this rule |
IAnalysisViewer |
getViewer()
|
boolean |
hasQuickFixes()
Determine if the rule has any quickfixes associated with it |
boolean |
isCustom()
Used Internally |
void |
removeHistoryResultSet(java.lang.String historyId)
Remove the result data associated with the specified history id |
void |
setCustom(boolean value)
Used Internally |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setQuickFixId(java.lang.String newId)
Allows a custom rule to define its own id for a quickfix |
| Methods inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, addParameter, addParameters, deleteHistoryResults, dispose, getDetailProviders, getElementType, getExecutionHistory, getExternalDataMap, getHelpID, getHistoryResults, getId, getLabel, getOwner, getOwnerId, getParameter, getParameterCount, getParameterList, getPluginId, getProvider, getProviderManager, getViewerID, getVisibleParameterCount, loadOwnedVariables, loadOwnedVariables, postAnalyze, preAnalyze, setElementType, setExternalDataMap, setHelpID, setIconName, setId, setInitializationData, setLabel, setOwner, setOwnerId, setPluginId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.tptp.platform.analysis.core.rule.IAnalysisRule |
|---|
addParameter, addParameters, getParameter, getParameterCount, getParameterList, getProvider, getVisibleParameterCount |
| Methods inherited from interface org.eclipse.tptp.platform.analysis.core.element.IAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, dispose, getDetailProviders, getElementType, getExternalDataMap, getHelpID, getHistoryResults, getId, getLabel, getOwner, getPluginId, preAnalyze, setElementType, setExternalDataMap, setHelpID, setIconName, setId, setLabel, setOwner, setPluginId |
| Constructor Detail |
protected AbstractAnalysisRule()
protected AbstractAnalysisRule(int type)
| Method Detail |
public abstract void analyze(AnalysisHistory history)
IAnalysisRule
analyze in interface IAnalysisRulehistory - A reference to the history record for this analysis
public final void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionpublic final java.lang.String getLabelWithVariables()
getLabelWithVariables in interface IAnalysisRulepublic final java.lang.String getLabelWithParameters()
public final java.lang.String getIconName()
getIconName in interface IAnalysisElementgetIconName in class AbstractAnalysisElementIAnalysisElement.getIconName()public final boolean hasQuickFixes()
hasQuickFixes in interface IAnalysisRulepublic final void setQuickFixId(java.lang.String newId)
setQuickFixId in interface IAnalysisRulenewId - The id for the rulepublic final java.util.Iterator getQuickFixIterator()
getQuickFixIterator in interface IAnalysisRulepublic final IAnalysisQuickFix getQuickFix(java.lang.String newId)
getQuickFix in interface IAnalysisRulenewId - The unique id of the quickfix to retrieve
public final int getQuickFixCount()
getQuickFixCount in interface IAnalysisRulepublic final IAnalysisViewer getViewer()
getViewer in interface IAnalysisRulepublic final java.util.List getOwnedElements()
getOwnedElements in interface IAnalysisElementgetOwnedElements in class AbstractAnalysisElementpublic final boolean isCustom()
isCustom in interface IAnalysisRulepublic final void setCustom(boolean value)
setCustom in interface IAnalysisRule
public final void addHistoryResultSet(java.lang.String historyId,
AbstractAnalysisResult result)
addHistoryResultSet in interface IAnalysisRulehistoryId - The id of the history analysis runresult - The result to addpublic final void removeHistoryResultSet(java.lang.String historyId)
IAnalysisElement
removeHistoryResultSet in interface IAnalysisElementremoveHistoryResultSet in class AbstractAnalysisElementhistoryId - The id of the history analysis run being removed
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||