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
Modifier and TypeFieldDescriptionprivate int
End column of token.private int
End line of token. -
Constructor Summary
-
Method Summary
-
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
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.
-