public static < T extends MethodDescription > ElementMatcher . Junction < T > hasMethodName ( String internalName ) { if ( MethodDescription . CONSTRUCTOR_INTERNAL_NAME . equals ( internalName ) ) { return isConstructor ( ) ; } else if ( MethodDescription . TYPE_INITIALIZER_INTERNAL_NAME . equals ( internalName ) ) { return isTypeInitializer ( ) ; } else { return named ( internalName ) ; } }
Matches a method against its internal name such that constructors and type initializers are matched appropriately .