public static Matcher < MethodTree > methodNameStartsWith ( final String prefix ) { return new Matcher < MethodTree > ( ) { @ Override public boolean matches ( MethodTree methodTree , VisitorState state ) { return methodTree . getName ( ) . toString ( ) . startsWith ( prefix ) ; } } ; }
Match a method declaration that starts with a given string .