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