Class AvoidBranchingStatementAsLastInLoopRule

  • All Implemented Interfaces:
    JavaParserVisitor, net.sourceforge.pmd.lang.rule.ImmutableLanguage, net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.Rule

    public class AvoidBranchingStatementAsLastInLoopRule
    extends AbstractJavaRule
    • Field Detail

      • CHECK_BREAK_LOOP_TYPES

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<java.util.List<java.lang.String>> CHECK_BREAK_LOOP_TYPES
      • CHECK_CONTINUE_LOOP_TYPES

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<java.util.List<java.lang.String>> CHECK_CONTINUE_LOOP_TYPES
      • CHECK_RETURN_LOOP_TYPES

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<java.util.List<java.lang.String>> CHECK_RETURN_LOOP_TYPES
    • Constructor Detail

      • AvoidBranchingStatementAsLastInLoopRule

        public AvoidBranchingStatementAsLastInLoopRule()
    • Method Detail

      • check

        protected java.lang.Object check​(net.sourceforge.pmd.properties.PropertyDescriptor<java.util.List<java.lang.String>> property,
                                         net.sourceforge.pmd.lang.ast.Node node,
                                         java.lang.Object data)
      • hasPropertyValue

        protected boolean hasPropertyValue​(net.sourceforge.pmd.properties.PropertyDescriptor<java.util.List<java.lang.String>> property,
                                           java.lang.String value)
      • dysfunctionReason

        public java.lang.String dysfunctionReason()
        Specified by:
        dysfunctionReason in interface net.sourceforge.pmd.properties.PropertySource
        Overrides:
        dysfunctionReason in class net.sourceforge.pmd.properties.AbstractPropertySource
        See Also:
        PropertySource.dysfunctionReason()
      • checksNothing

        public boolean checksNothing()