Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.InstanceOfUtils
- java.lang.Object
-
- org.checkerframework.javacutil.TreeUtilsAfterJava11.InstanceOfUtils
-
- Enclosing class:
- TreeUtilsAfterJava11
public static class TreeUtilsAfterJava11.InstanceOfUtils extends java.lang.ObjectUtility methods for accessingInstanceOfTreemethods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable com.sun.source.tree.TreegetPattern(com.sun.source.tree.InstanceOfTree instanceOfTree)Returns the pattern ofinstanceOfTreetree.
-
-
-
Method Detail
-
getPattern
public static @Nullable com.sun.source.tree.Tree getPattern(com.sun.source.tree.InstanceOfTree instanceOfTree)
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
-
-