Class IndexUtil
java.lang.Object
org.checkerframework.checker.index.IndexUtil
A collection of utility functions used by several Index Checker subcheckers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) Determines whether the type is a sequence supported by this checker.
-
Constructor Details
-
IndexUtil
public IndexUtil()
-
-
Method Details
-
isSequenceType
Determines whether the type is a sequence supported by this checker. -
getLengthSequenceTree
public static 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.
-