Class AnnotationMatcherUtils


  • public class AnnotationMatcherUtils
    extends Object
    Utilities for matching annotations.
    Author:
    [email protected] (Mike Wacker)
    • 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 annotation
        name - the name of the argument whose value to get
        Returns:
        the value of the argument, or null if the argument does not exist