Overview Package Class Use Tree Deprecated Index Help
PREV NEXT FRAMES NO FRAMES All Classes

Uses of Interface
net.sourceforge.pmd.Rule

Packages that use Rule
net.sourceforge.pmd This is the PMD programming mistake detector.
net.sourceforge.pmd.ast
net.sourceforge.pmd.dfa
net.sourceforge.pmd.jsp.ast
net.sourceforge.pmd.jsp.rules
net.sourceforge.pmd.properties
net.sourceforge.pmd.rules
net.sourceforge.pmd.rules.basic
net.sourceforge.pmd.rules.codesize
net.sourceforge.pmd.rules.design
net.sourceforge.pmd.rules.imports
net.sourceforge.pmd.rules.junit
net.sourceforge.pmd.rules.migration
net.sourceforge.pmd.rules.naming
net.sourceforge.pmd.rules.optimization
net.sourceforge.pmd.rules.strictexception
net.sourceforge.pmd.rules.strings
net.sourceforge.pmd.rules.sunsecure
net.sourceforge.pmd.stat
net.sourceforge.pmd.typeresolution.rules
net.sourceforge.pmd.typeresolution.rules.imports
net.sourceforge.pmd.util.designer

Uses of Rule in net.sourceforge.pmd

Classes in net.sourceforge.pmd that implement Rule
class AbstractDelegateRule
Base class for Rule implementations which delegate to another Rule instance.
class AbstractJavaRule
class AbstractRule
Deprecated. - Use AbstractJavaRule instead
class CommonAbstractRule
Basic abstract implementation of all parser-independent methods of the Rule interface.
class MockRule
This is a Rule implementation which can be used in scenarios where an actual functional Rule is not needed.
class RuleReference
This class represents a Rule which is a reference to Rule defined in another RuleSet.

Fields in net.sourceforge.pmd with type parameters of type Rule
protected java.util.Map<RuleSet,java.util.List<Rule>> AbstractRuleChainVisitor.ruleSetRules
These are all the rules participating in the RuleChain, grouped by RuleSet.

Methods in net.sourceforge.pmd that return Rule
Rule IRuleViolation.getRule()
Rule AbstractDelegateRule.getRule()
Rule RuleViolation.getRule()
Rule RuleSets.getRuleByName(java.lang.String ruleName)
Returns the Rule with the given name
Rule RuleSet.getRuleByName(java.lang.String ruleName)
Returns the Rule with the given name

Methods in net.sourceforge.pmd that return types with arguments of type Rule
java.util.Set<Rule> RuleSets.getAllRules()
Return all rules from all rulesets.
java.util.Collection<Rule> RuleSet.getRules()
Returns the actual Collection of rules in this ruleset

Methods in net.sourceforge.pmd with parameters of type Rule
void RuleChainVisitor.add(RuleSet ruleSet, Rule rule)
Add the given rule to the visitor.
void AbstractRuleChainVisitor.add(RuleSet ruleSet, Rule rule)
void RuleSet.addRule(Rule rule)
Add a new rule to this ruleset
void RuleSet.addRuleByReference(java.lang.String ruleSetFileName, Rule rule)
Add a new rule by reference to this ruleset.
java.lang.String PropertyDescriptor.propertyErrorFor(Rule rule)
A convenience method that returns an error string if the rule holds onto a property value that has a problem.
void AbstractDelegateRule.setRule(Rule rule)
protected abstract void AbstractRuleChainVisitor.visit(Rule rule, SimpleNode node, RuleContext ctx)
Visit the given rule to the given node.

Constructors in net.sourceforge.pmd with parameters of type Rule
RuleViolation(Rule rule, RuleContext ctx, SimpleNode node)
RuleViolation(Rule rule, RuleContext ctx, SimpleNode node, java.lang.String specificMsg)

Uses of Rule in net.sourceforge.pmd.ast

Methods in net.sourceforge.pmd.ast with parameters of type Rule
boolean ASTLocalVariableDeclaration.hasSuppressWarningsAnnotationFor(Rule rule)
boolean CanSuppressWarnings.hasSuppressWarningsAnnotationFor(Rule rule)
boolean ASTClassOrInterfaceBodyDeclaration.hasSuppressWarningsAnnotationFor(Rule rule)
boolean ASTFormalParameter.hasSuppressWarningsAnnotationFor(Rule rule)
boolean ASTTypeDeclaration.hasSuppressWarningsAnnotationFor(Rule rule)
boolean ASTAnnotation.suppresses(Rule rule)
protected void JavaRuleChainVisitor.visit(Rule rule, SimpleNode node, RuleContext ctx)

Uses of Rule in net.sourceforge.pmd.dfa

Classes in net.sourceforge.pmd.dfa that implement Rule
class DaaRule
Starts path search for each method and runs code if found.

Constructors in net.sourceforge.pmd.dfa with parameters of type Rule
DaaRuleViolation(Rule rule, RuleContext ctx, SimpleNode node, java.lang.String type, java.lang.String msg, java.lang.String var, int beginLine, int endLine)

Uses of Rule in net.sourceforge.pmd.jsp.ast

Methods in net.sourceforge.pmd.jsp.ast with parameters of type Rule
protected void JspRuleChainVisitor.visit(Rule rule, SimpleNode node, RuleContext ctx)

Uses of Rule in net.sourceforge.pmd.jsp.rules

Classes in net.sourceforge.pmd.jsp.rules that implement Rule
class AbstractJspRule
class DuplicateJspImports
class NoInlineStyleInformation
This rule checks that no "style" elements (like , , ...) are used, and that no "style" attributes (like "font", "size", "align") are used.

Uses of Rule in net.sourceforge.pmd.properties

Methods in net.sourceforge.pmd.properties with parameters of type Rule
java.lang.String AbstractPMDProperty.propertyErrorFor(Rule rule)
Method propertyErrorFor.

Uses of Rule in net.sourceforge.pmd.rules

Classes in net.sourceforge.pmd.rules that implement Rule
class AbstractInefficientZeroCheck
This is an abstract rule for patterns which compare a method invocation to 0.
class AbstractPoorMethodCall
Detects and flags the occurrences of specific method calls against an instance of a designated class.
class AccessorClassGeneration
1.
class AssignmentInOperand
class AvoidCallingFinalize
class AvoidDeeplyNestedIfStmtsRule
class AvoidFieldNameMatchingMethodName
class AvoidFieldNameMatchingTypeName
class AvoidNonConstructorMethodsWithClassName
class AvoidReassigningParameters
class BeanMembersShouldSerializeRule
class ClassNamingConventions
class CloseResource
Makes sure you close your database connections.
class ConstructorCallsOverridableMethod
Searches through all methods and constructors called from constructors.
class CouplingBetweenObjects
CouplingBetweenObjects attempts to capture all unique Class attributes, local variables, and return types to determine how many objects a class is coupled to.
class CyclomaticComplexity
class DoubleCheckedLocking
void method() { if(x == null) { synchronized(this){ if(x == null) { x = new | method(); } } } 1.
class ExcessiveImports
ExcessiveImports attempts to count all unique imports a class contains.
class ExcessivePublicCount
class GenericLiteralCheckerRule
This class allow to match a Literal (most likely a String) with a regex pattern.
class IdempotentOperations
class MethodNamingConventions
class MethodWithSameNameAsEnclosingClass
class MoreThanOneLogger
class OverrideBothEqualsAndHashcode
class SimplifyBooleanReturns
class StringConcatenationRule
class SuspiciousOctalEscape
class SymbolTableTestRule
class UnnecessaryConversionTemporary
class UnusedFormalParameterRule
class UnusedLocalVariableRule
class UnusedModifier
class UnusedPrivateFieldRule
class UnusedPrivateMethodRule
class UselessAssignment
class UselessOperationOnImmutable
An operation on an Immutable object (String, BigDecimal or BigInteger) won't change the object itself.
class UselessOverridingMethod
class VariableNamingConventions
class XPathRule
Rule that tries to match an XPath expression against a DOM view of the AST of a "compilation unit".

Uses of Rule in net.sourceforge.pmd.rules.basic

Classes in net.sourceforge.pmd.rules.basic that implement Rule
class AvoidMultipleUnaryOperators
class AvoidUsingHardCodedIP
class AvoidUsingOctalValues
class BigIntegerInstantiation
class BooleanInstantiation
Avoid instantiating Boolean objects; you can reference Boolean.TRUE, Boolean.FALSE, or call Boolean.valueOf() instead.
class BrokenNullCheck
class UnnecessaryReturn

Uses of Rule in net.sourceforge.pmd.rules.codesize

Classes in net.sourceforge.pmd.rules.codesize that implement Rule
class AbstractNcssCount
Abstract superclass for NCSS counting methods.
class NcssConstructorCount
Non-commented source statement counter for constructors.
class NcssMethodCount
Non-commented source statement counter for methods.
class NcssTypeCount
Non-commented source statement counter for type declarations.

Uses of Rule in net.sourceforge.pmd.rules.design

Classes in net.sourceforge.pmd.rules.design that implement Rule
class AssignmentToNonFinalStatic
class CompareObjectsWithEquals
class ConfusingTernary
if (x != y) { diff(); } else { same(); } and
(!x ? diff() : same());.
class ExceptionAsFlowControl
Catches the use of exception statements as a flow control device.
class ExcessiveLengthRule
This is a common super class for things which have excessive length.
class ExcessiveNodeCountRule
This is a common super class for things which shouldn't have excessive nodes underneath.
class GenericClassCounterRule
A generic rule that can be configured to "count" classes of certain type based on either their name (full name, prefix, suffixes anything can be matched with a regex), and/or their type.
class ImmutableField
class LongClassRule
This rule detects when a class exceeds a certain threshold.
class LongMethodRule
This rule detects when a method exceeds a certain threshold.
class LongParameterListRule
This rule detects an abnormally long parameter list.
class LooseCoupling
class NonThreadSafeSingleton
class NpathComplexity
NPath complexity is a measurement of the acyclic execution paths through a function.
class NullAssignmentRule
class OnlyOneReturnRule
class PositionalIteratorRule
class PreserveStackTrace
class SingularField
class SwitchDensityRule
class TooManyFields
class UnnecessaryLocalBeforeReturn
class UnsynchronizedStaticDateFormatter
Using a DateFormatter (SimpleDateFormatter) which is static can cause unexpected results when used in a multi threaded environment.
class UseCollectionIsEmpty
Detect structures like "foo.size() == 0" and suggest replacing them with foo.isEmpty().
class UseSingleton

Uses of Rule in net.sourceforge.pmd.rules.imports

Classes in net.sourceforge.pmd.rules.imports that implement Rule
class DontImportJavaLang
class DontImportSun
class DuplicateImportsRule
class ImportFromSamePackageRule
class UnusedImportsRule

Uses of Rule in net.sourceforge.pmd.rules.junit

Classes in net.sourceforge.pmd.rules.junit that implement Rule
class AbstractJUnitRule
class JUnitAssertionsShouldIncludeMessage
class JUnitTestsShouldContainAsserts
class TestClassWithoutTestCases

Uses of Rule in net.sourceforge.pmd.rules.migration

Classes in net.sourceforge.pmd.rules.migration that implement Rule
class JUnitUseExpected
This rule finds code like this:
class UnnecessaryCast

Uses of Rule in net.sourceforge.pmd.rules.naming

Classes in net.sourceforge.pmd.rules.naming that implement Rule
class AvoidDollarSigns
class SuspiciousHashcodeMethodName

Uses of Rule in net.sourceforge.pmd.rules.optimization

Classes in net.sourceforge.pmd.rules.optimization that implement Rule
class AbstractOptimizationRule
Base class with utility methods for optimization rules
class AvoidInstantiatingObjectsInLoops
class LocalVariableCouldBeFinal
class MethodArgumentCouldBeFinal
class UnnecessaryWrapperObjectCreation
class UseStringBufferForStringAppends

Uses of Rule in net.sourceforge.pmd.rules.strictexception

Classes in net.sourceforge.pmd.rules.strictexception that implement Rule
class AvoidCatchingThrowable
Finds catch statements containing throwable as the type definition.
class ExceptionSignatureDeclaration

Uses of Rule in net.sourceforge.pmd.rules.strings

Classes in net.sourceforge.pmd.rules.strings that implement Rule
class AppendCharacterWithChar
This rule finds the following:

class AvoidDuplicateLiteralsRule
class ConsecutiveLiteralAppends
This rule finds concurrent calls to StringBuffer.append where String literals are used It would be much better to make these calls using one call to .append

example:

class InefficientEmptyStringCheck
This rule finds code which inefficiently determines empty strings.
class InefficientStringBuffering
class InsufficientStringBufferDeclaration
This rule finds StringBuffers which may have been pre-sized incorrectly See http://sourceforge.net/forum/forum.php?thread_id=1438119&forum_id=188194
class StringInstantiation
class StringToStringRule
class UnnecessaryCaseChange
class UseIndexOfChar
class UselessStringValueOf
class UseStringBufferLength
This rule finds places where StringBuffer.toString() is called just to see if the string is 0 length by either using .equals("") or toString().length()

Uses of Rule in net.sourceforge.pmd.rules.sunsecure

Classes in net.sourceforge.pmd.rules.sunsecure that implement Rule
class AbstractSunSecureRule
Utility methods for the package
class ArrayIsStoredDirectly
class MethodReturnsInternalArray
Implementation note: this rule currently ignores return types of y.x.z, currently it handles only local type fields.

Uses of Rule in net.sourceforge.pmd.stat

Classes in net.sourceforge.pmd.stat that implement Rule
class StatisticalRule

Uses of Rule in net.sourceforge.pmd.typeresolution.rules

Classes in net.sourceforge.pmd.typeresolution.rules that implement Rule
class CloneMethodMustImplementCloneable
The method clone() should only be implemented if the class implements the Cloneable interface with the exception of a final method that only throws CloneNotSupportedException.
class SignatureDeclareThrowsException
A method/constructor shouldn't explicitly throw java.lang.Exception, since it is unclear which exceptions that can be thrown from the methods.

Uses of Rule in net.sourceforge.pmd.typeresolution.rules.imports

Classes in net.sourceforge.pmd.typeresolution.rules.imports that implement Rule
class UnusedImports

Uses of Rule in net.sourceforge.pmd.util.designer

Classes in net.sourceforge.pmd.util.designer that implement Rule
class DFAGraphRule


Overview Package Class Use Tree Deprecated Index Help
PREV NEXT FRAMES NO FRAMES All Classes

Copyright © 2002-2011 InfoEther. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /