public static < T extends MethodDescription > ElementMatcher . Junction < T > isVirtual ( ) { return new MethodSortMatcher < T > ( MethodSortMatcher . Sort . VIRTUAL ) ; }
Matches any method that is virtual i . e . non - constructors that are non - static and non - private .