protected boolean isPrivateMethod ( MethodDeclaration md ) { Collection < Modifier > modifiers = md . getModifiers ( ) ; for ( Modifier m : modifiers ) { if ( m . compareTo ( Modifier . PRIVATE ) == 0 ) return true ; } return false ; }
Checks a MethodDeclaration for a private modifier .