Package com.google.errorprone.matchers
Class AnnotationMatcherUtils
- java.lang.Object
-
- com.google.errorprone.matchers.AnnotationMatcherUtils
-
public class AnnotationMatcherUtils extends Object
Utilities for matching annotations.- Author:
- [email protected] (Mike Wacker)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.source.tree.ExpressionTree
getArgument(com.sun.source.tree.AnnotationTree annotationTree, String name)
Gets the value for an argument, or null if the argument does not exist.
-
-
-
Method Detail
-
getArgument
@Nullable public static com.sun.source.tree.ExpressionTree getArgument(com.sun.source.tree.AnnotationTree annotationTree, String name)
Gets the value for an argument, or null if the argument does not exist.- Parameters:
annotationTree
- the AST node for the annotationname
- the name of the argument whose value to get- Returns:
- the value of the argument, or null if the argument does not exist
-
-