public interface MethodEnhancer
| Modifier and Type | Method and Description |
|---|---|
DynamicMethod |
enhance(String name,
DynamicMethod delegate)
Will be called with a method which should be enhanced.
|
DynamicMethod enhance(String name, DynamicMethod delegate)
if( isMyCode( delegate ) ) {
return new ProfilingDynamicMethod( delegate );
} else {
return delegate;
}
name - the name of the given delegatedelegate - the method to enhanceCopyright © 2001-2015 JRuby. All Rights Reserved.