Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.InstanceOfUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.InstanceOfUtils
- Enclosing class:
TreeUtilsAfterJava11
Utility methods for accessing
InstanceOfTree
methods.-
Method Summary
Modifier and TypeMethodDescriptiongetPattern
(InstanceOfTree instanceOfTree) Returns the pattern ofinstanceOfTree
tree.
-
Method Details
-
getPattern
Returns the pattern ofinstanceOfTree
tree. Returns null if the instanceof does not have a pattern, including if the JDK version does not support instance-of patterns.- Parameters:
instanceOfTree
- theInstanceOfTree
whose pattern is returned- Returns:
- the
PatternTree
ofinstanceOfTree
or null if it doesn't exist
-