Class IndexUtil
java.lang.Object
org.checkerframework.checker.index.IndexUtil
A collection of utility functions used by several Index Checker subcheckers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ExpressionTree
getLengthSequenceTree
(Tree lengthTree, IndexMethodIdentifier imf, ProcessingEnvironment processingEnv) Gets a sequence tree for a length access tree, or null if it is not a length access.static boolean
isSequenceType
(TypeMirror type) Returns true if the type is a sequence supported by this checker.
-
Method Details
-
isSequenceType
Returns true if the type is a sequence supported by this checker.- Parameters:
type
- a type- Returns:
- true if the type is a sequence supported by this checker
-
getLengthSequenceTree
public static @Nullable ExpressionTree getLengthSequenceTree(Tree lengthTree, IndexMethodIdentifier imf, ProcessingEnvironment processingEnv) Gets a sequence tree for a length access tree, or null if it is not a length access.
-