Class TreeUtilsAfterJava11.InstanceOfUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.InstanceOfUtils
-
Method Summary
Modifier and TypeMethodDescriptiongetPattern(InstanceOfTree instanceOfTree) Returns the pattern ofinstanceOfTreetree.
-
Method Details
-
getPattern
Returns the pattern ofinstanceOfTreetree. Returns null if the instanceof does not have a pattern, including if the JDK version does not support instance-of patterns.- Parameters:
instanceOfTree- theInstanceOfTreewhose pattern is returned- Returns:
- the
PatternTreeofinstanceOfTreeor null if it doesn't exist
-