TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.core.rule
Interface IAnalysisRule

All Superinterfaces:
IAnalysisElement, org.eclipse.core.runtime.IExecutableExtension
All Known Implementing Classes:
AbstractAnalysisRule, RuleCastingPreferCppStyleCast, RuleClassesAssignmentOperator, RuleClassesAvoidOverloading, RuleClassesAvoidPublicProtectedFields, RuleClassesCopyConstructor, RuleClassesDeclareOpEquals, RuleClassesDefaultClassFunctions, RuleClassesImplicitTypeConversion, RuleClassesOperatorDelete, RuleConditionalAssignmentInCondition, RuleConditionalNegationIfCondition, RuleConditionalTernary, RuleDeclarationHideNormalNew, RuleDeclarationInitializeOrder, RuleDeclarationMutipleDeclarations, RuleExceptionsCatchReference, RuleExceptionsDestructorThrow, RuleFunctionCopyConstructAllMembers, RuleFunctionOperatorAssignAllMembers, RuleFunctionOperatorAssignReturn, RuleFunctionOperatorAssignSelfCheck, RuleFunctionOperatorIncrReturn, RuleFunctionOperatorReturnConstObject, RuleFunctionOverloadPointerAndNumber, RuleFunctionPreferInitialization, RuleFunctionPreferPassByReference, RuleFunctionReturningNewObject, RuleFunctionReturnPrivateReference, RuleInheritanceDesctructorVirtual, RuleInheritanceOverrideDefaultParameter, RuleInheritanceOverrideNonVirtual, RuleLoopAssignLoopVariable, RuleLoopContinueStatement, RuleLoopNoConditionForLoop, RuleLoopNoInitIncrForLoop, RuleMemoryDeletePointers, RuleMemoryNewDeleteForm, RulePreprocessorAvoidDefineConst, RulePreprocessorAvoidStdio, RuleStatementAvoidMalloc, RuleStatementPreferPrefix, RuleSwitchBranch, RuleSwitchDefaultLabel, Template_Avoid_Class_Method, Template_Avoid_Class_Method_Arguments, Template_Avoid_Extending_Class, TemplateAvoidCatchingException, TemplateAvoidClass, TemplateAvoidClassInstanceCreation, TemplateAvoidImplementingInterface, TemplateAvoidMethodInvocation, TemplateAvoidNewClass, TemplateAvoidNonSynchronizedClassMethod, TemplateAvoidPackage, TemplateAvoidThrowingException

Deprecated. extend AbstractAnalysisRule instead

public interface IAnalysisRule
extends IAnalysisElement, org.eclipse.core.runtime.IExecutableExtension

The interface used to implement analysis categories


Method Summary
 void addHistoryResultSet(java.lang.String historyId, AbstractAnalysisResult result)
          Deprecated. Add a new result to the history.
 void addParameter(AnalysisParameter parameter)
          Deprecated. Add a new parameter to the rule
 void addParameters(java.util.List parameters)
          Deprecated. Add a list of new rule parameters to the rule
 void analyze(AnalysisHistory history)
          Deprecated. Run the analysis portion of the rule to generate results for any matching data
 java.lang.String getLabelWithVariables()
          Deprecated.  
 AnalysisParameter getParameter(java.lang.String name)
          Deprecated. Return the rule variable data of a named variable or null if no value was found
 int getParameterCount()
          Deprecated.  
 java.util.List getParameterList()
          Deprecated.  
 AbstractAnalysisProvider getProvider()
          Deprecated.  
 IAnalysisQuickFix getQuickFix(java.lang.String newId)
          Deprecated.  
 int getQuickFixCount()
          Deprecated.  
 java.util.Iterator getQuickFixIterator()
          Deprecated. Return an iterator that can be used to crawl a list of quickfix id strings related to this rule
 IAnalysisViewer getViewer()
          Deprecated.  
 int getVisibleParameterCount()
          Deprecated. Return the number of variables in the rule that are visible in the user interface.
 boolean hasQuickFixes()
          Deprecated. Determine if the rule has any quickfixes associated with it
 boolean isCustom()
          Deprecated. Used Internally
 void setCustom(boolean value)
          Deprecated. Used Internally
 void setQuickFixId(java.lang.String newId)
          Deprecated. Allows a custom rule to define its own id
 
Methods inherited from interface org.eclipse.tptp.platform.analysis.core.element.IAnalysisElement
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, dispose, getDetailProviders, getElementType, getExternalDataMap, getHelpID, getHistoryResults, getIconName, getId, getLabel, getOwnedElements, getOwner, getPluginId, preAnalyze, removeHistoryResultSet, setElementType, setExternalDataMap, setHelpID, setIconName, setId, setLabel, setOwner, setPluginId
 
Methods inherited from interface org.eclipse.core.runtime.IExecutableExtension
setInitializationData
 

Method Detail

getQuickFixIterator

java.util.Iterator getQuickFixIterator()
Deprecated. 
Return an iterator that can be used to crawl a list of quickfix id strings related to this rule

Returns:
A quickfix id iterator or null if no quickfixes relate to this rule

hasQuickFixes

boolean hasQuickFixes()
Deprecated. 
Determine if the rule has any quickfixes associated with it

Returns:
true if there are associated quickfixes

setQuickFixId

void setQuickFixId(java.lang.String newId)
Deprecated. 
Allows a custom rule to define its own id

Parameters:
newId - The id for the rule

getQuickFixCount

int getQuickFixCount()
Deprecated. 
Returns:
The number of quickfixes supported by this rule

getQuickFix

IAnalysisQuickFix getQuickFix(java.lang.String newId)
Deprecated. 
Parameters:
newId - The unique id of the quickfix to retrieve
Returns:
The the quickfix for this rule

addParameter

void addParameter(AnalysisParameter parameter)
Deprecated. 
Add a new parameter to the rule

Parameters:
parameter - The parameter to add to the rule

addParameters

void addParameters(java.util.List parameters)
Deprecated. 
Add a list of new rule parameters to the rule

Parameters:
parameters - A list of RuleParameter instances to add to the rule

getParameter

AnalysisParameter getParameter(java.lang.String name)
Deprecated. 
Return the rule variable data of a named variable or null if no value was found

Parameters:
name - The name of the variable
Returns:
the rule variable data of the named variable or null if no value was found

getParameterCount

int getParameterCount()
Deprecated. 
Returns:
the number of variables in the rule

getVisibleParameterCount

int getVisibleParameterCount()
Deprecated. 
Return the number of variables in the rule that are visible in the user interface. Visible varaibles are those that have a label. Variables with an empty label are not displayed.

Returns:
the number of variables in the rule that are visible in the user interface.

getParameterList

java.util.List getParameterList()
Deprecated. 
Returns:
The list of variables for this rule or null if there are no variables

getLabelWithVariables

java.lang.String getLabelWithVariables()
Deprecated. 
Returns:
a label which includes variable substitutions

isCustom

boolean isCustom()
Deprecated. 
Used Internally

Returns:
true if this is a user-defined custom rule

setCustom

void setCustom(boolean value)
Deprecated. 
Used Internally

Parameters:
isCustom -

analyze

void analyze(AnalysisHistory history)
Deprecated. 
Run the analysis portion of the rule to generate results for any matching data

Parameters:
history - A reference to the history record for this analysis

getViewer

IAnalysisViewer getViewer()
Deprecated. 
Returns:
the viewer for this result.

getProvider

AbstractAnalysisProvider getProvider()
Deprecated. 
Returns:
the provider, which is top-most owner in the category/rule tree

addHistoryResultSet

void addHistoryResultSet(java.lang.String historyId,
                         AbstractAnalysisResult result)
Deprecated. 
Add a new result to the history.

Parameters:
historyId - The id of the history analysis run
result - The result to add

TPTP 4.5.0 Platform Project
Public API Specification