Class NPathComplexityCheck.TokenEnd
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck.TokenEnd
- Enclosing class:
NPathComplexityCheck
Coordinates of token end. Used to prevent inline ternary
operator from being processed twice.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intEnd column of token.private intEnd line of token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanChecks if saved coordinates located after given token.(package private) voidreset()Sets end token coordinates to the start of the file.(package private) voidSets end coordinates from given token.
-
Field Details
-
endLineNo
End line of token. -
endColumnNo
End column of token.
-
-
Constructor Details
-
TokenEnd
private TokenEnd()
-
-
Method Details
-
setToken
Sets end coordinates from given token.- Parameters:
endToken- token.
-
reset
void reset()Sets end token coordinates to the start of the file. -
isAfter
Checks if saved coordinates located after given token.- Parameters:
ast- given token.- Returns:
- true, if saved coordinates located after given token.
-