public static < T extends MethodDescription > ElementMatcher . Junction < T > isGetter ( ) { return takesArguments ( 0 ) . and ( not ( returns ( TypeDescription . VOID ) ) ) . and ( nameStartsWith ( "get" ) . or ( nameStartsWith ( "is" ) . and ( returnsGeneric ( anyOf ( boolean . class , Boolean . class ) ) ) ) ) ; }
Matches any Java bean getter method .