Package org.sonar.java.checks
Class AbstractForLoopRule.ForLoopIncrement
- java.lang.Object
-
- org.sonar.java.checks.AbstractForLoopRule.IntVariable
-
- org.sonar.java.checks.AbstractForLoopRule.ForLoopIncrement
-
- Enclosing class:
- AbstractForLoopRule
protected static class AbstractForLoopRule.ForLoopIncrement extends AbstractForLoopRule.IntVariable
-
-
Constructor Summary
Constructors Constructor Description ForLoopIncrement(IdentifierTree identifier, Integer value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractForLoopRule.ForLoopIncrement
findInUpdates(ForStatementTree forStatement)
boolean
hasValue()
int
value()
-
Methods inherited from class org.sonar.java.checks.AbstractForLoopRule.IntVariable
hasSameIdentifier, identifier
-
-
-
-
Constructor Detail
-
ForLoopIncrement
public ForLoopIncrement(IdentifierTree identifier, @Nullable Integer value)
-
-
Method Detail
-
hasValue
public boolean hasValue()
-
value
public int value()
-
findInUpdates
@CheckForNull public static AbstractForLoopRule.ForLoopIncrement findInUpdates(ForStatementTree forStatement)
-
-