|
TPTP 4.2.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
org.eclipse.tptp.platform.analysis.codereview.java.templates.TemplateAvoidClassInstanceCreation
This class implements a rule template which generates a result for each matched class instance creation and super constructor invocation.
The template interprets all of the following optional rule variables:
CLASS - the name of the class the defines the method
PARAMETER_TYPES - a comma separated list of of parameter types
| Field Summary |
|---|
| Fields inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
DETAIL_PROVIDER |
| Constructor Summary | |
|---|---|
TemplateAvoidClassInstanceCreation()
|
|
| Method Summary | |
|---|---|
void |
analyze(AnalysisHistory history)
Analyze this rule |
| Methods inherited from class org.eclipse.tptp.platform.analysis.core.rule.AbstractAnalysisRule |
|---|
addHistoryResultSet, addParameter, addParameters, getIconName, getLabelWithVariables, getOwnedElements, getParameter, getParameterCount, getParameterList, getProvider, getQuickFix, getQuickFixCount, getQuickFixIterator, getViewer, getVisibleVariableCount, hasQuickFixes, isCustom, removeHistoryResultSet, setCustom, setInitializationData, setQuickFixId |
| Methods inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, deleteHistoryResults, dispose, getDetailProviders, getElementType, getExecutionHistory, getHelpID, getHistoryResults, getId, getLabel, getOwner, getPluginId, getViewerID, preAnalyze, setElementType, setHelpID, setIconName, setId, setInitializationData, setLabel, setOwner, 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.element.IAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, dispose, getDetailProviders, getElementType, getHelpID, getHistoryResults, getId, getLabel, getOwner, getPluginId, preAnalyze, setElementType, setHelpID, setIconName, setId, setLabel, setOwner, setPluginId |
| Constructor Detail |
public TemplateAvoidClassInstanceCreation()
| Method Detail |
public void analyze(AnalysisHistory history)
analyze in interface IAnalysisRuleanalyze in class AbstractAnalysisRulehistory - A reference to the history record for this analysis
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||