Class AbstractModelicaRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.modelica.rule.AbstractModelicaRule
-
- All Implemented Interfaces:
ModelicaParserVisitor
,ImmutableLanguage
,PropertySource
,Rule
- Direct Known Subclasses:
AmbiguousResolutionRule
,ConnectUsingNonConnector
public abstract class AbstractModelicaRule extends AbstractRule implements ModelicaParserVisitor, ImmutableLanguage
Base class for rules for Modelica language.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
Fields inherited from interface net.sourceforge.pmd.Rule
VIOLATION_SUPPRESS_REGEX_DESCRIPTOR, VIOLATION_SUPPRESS_XPATH_DESCRIPTOR
-
-
Constructor Summary
Constructors Constructor Description AbstractModelicaRule()
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getPropertySourceType, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
-
-
-
Method Detail
-
apply
public void apply(List<? extends Node> nodes, RuleContext ctx)
-
visitAll
protected void visitAll(List<? extends Node> nodes, RuleContext ctx)
-
visit
public Object visit(ModelicaNode node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTNegated node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStoredDefinition node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTWithinClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTClassDefinition node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEncapsulatedClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTClassPrefixes node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTPartialClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTClassClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTModelClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRecordClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOperatorRecordClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTBlockClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTConnectorClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExpandableConnectorClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTTypeClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTPackageClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTPureClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTImpureClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOperatorClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOperator node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSimpleLongClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExtendingLongClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSimpleShortClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEnumerationShortClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTDerClassSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTDerClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTBasePrefix node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEnumList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEnumerationLiteral node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComposition node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExternalClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTLanguageSpecification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExternalFunctionCall node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElementList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRedeclareClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFinalClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTInnerClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOuterClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTReplaceableClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRegularElement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTImportClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRenamingImportClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTUnqualifiedImportClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTMultipleDefinitionImportClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSingleDefinitionImportClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTImportList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExtendsClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTConstrainingClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTTypePrefix node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFlowClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStreamClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTDiscreteClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTParameterClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTConstantClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTInputClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOutputClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTTypeSpecifier node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentDeclaration node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTConditionAttribute node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTDeclaration node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTLongModification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTShortModification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAssignmentModification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTClassModification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTArgumentList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTArgument node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElementModificationOrReplaceable node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEachClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElementModification node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElementRedeclaration node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElementReplaceable node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentClause1 node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentDeclaration1 node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTShortClassDefinition node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEquationSection node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTInitialClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAlgorithmSection node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRegularEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionCallEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAssignmentStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionCallStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAssignmentFromMultiResultFunctionCall node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTBreakStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTReturnStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTIfEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTIfClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTThenClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElseIfClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElseClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTIfStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTForEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTEquationList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStatementList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTForStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTForIndices node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTForIndex node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTWhileStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTWhenEquation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTWhenClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTElseWhenClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTWhenStatement node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTConnectClause node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTIfExpression node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSimpleExpression node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTLogicalExpression node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTLogicalTerm node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRelation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTRelOp node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTArithmeticExpression node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAddOp node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTTerm node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTMulOp node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFactor node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFalseLiteral node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTTrueLiteral node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionInvocation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTListOfExpressionLists node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTNumberLiteral node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStringLiteral node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTName node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSimpleName node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSubscriptedName node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComponentReference node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionCallArgs node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionArguments node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTNamedArguments node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTNamedArgument node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTFunctionArgument node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTOutputExpressionList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTExpressionList node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTArraySubscripts node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTSubscript node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTColonSubsript node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTComment node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTStringComment node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
visit
public Object visit(ASTAnnotation node, Object data)
- Specified by:
visit
in interfaceModelicaParserVisitor
-
-