}
private static void define(RubyModule module, JavaMethodDescriptor desc, String simpleName, DynamicMethod dynamicMethod) {
JRubyMethod jrubyMethod = desc.anno;
// check for frame field reads or writes
CallConfiguration needs = CallConfiguration.valueOf(AnnotationHelper.getCallerCallConfigNameByAnno(jrubyMethod));
if (needs.framing() == Framing.Full) {
Set<String> frameAwareMethods = new HashSet<String>();
AnnotationHelper.addMethodNamesToSet(frameAwareMethods, jrubyMethod, simpleName);
MethodIndex.FRAME_AWARE_METHODS.addAll(frameAwareMethods);
}
if (needs.scoping() == Scoping.Full) {
Set<String> scopeAwareMethods = new HashSet<String>();
AnnotationHelper.addMethodNamesToSet(scopeAwareMethods, jrubyMethod, simpleName);
MethodIndex.SCOPE_AWARE_METHODS.addAll(scopeAwareMethods);
}