public static CanCache of ( MethodDescription . InDefinedShape methodDescription ) { if ( methodDescription . isTypeInitializer ( ) ) { return CanCacheIllegal . INSTANCE ; } else if ( methodDescription . isConstructor ( ) ) { return new ForConstructor ( methodDescription ) ; } else { return new ForMethod ( methodDescription ) ; } }
Creates a stack manipulation that loads a method constant onto the operand stack .