public static String getCallConfigNameByAnno(JRubyMethod anno) { return getCallConfigName(anno.frame(), anno.scope()); }
public static String getCallConfigNameByAnno(JRubyMethod anno) { return getCallConfigName(anno.frame(), anno.scope()); }
/** * Produce a CallConfiguration name that represents what *caller* methods must prepare for * the method with this annotation. * * @see org.jruby.internal.runtime.methods.CallConfiguration#getCallerCallConfigByAnno(JRubyMethod) */ public static String getCallerCallConfigNameByAnno(JRubyMethod jrubyMethod) { boolean frame = false; boolean scope = false; for (FrameField field : jrubyMethod.reads()) { frame |= field.needsFrame(); scope |= field.needsScope(); } for (FrameField field : jrubyMethod.writes()) { frame |= field.needsFrame(); scope |= field.needsScope(); } return getCallConfigName(frame, scope); }
/** * Produce a CallConfiguration name that represents what *caller* methods must prepare for * the method with this annotation. * * @see org.jruby.internal.runtime.methods.CallConfiguration#getCallerCallConfigByAnno(JRubyMethod) */ public static String getCallerCallConfigNameByAnno(JRubyMethod jrubyMethod) { boolean frame = false; boolean scope = false; for (FrameField field : jrubyMethod.reads()) { frame |= field.needsFrame(); scope |= field.needsScope(); } for (FrameField field : jrubyMethod.writes()) { frame |= field.needsFrame(); scope |= field.needsScope(); } return getCallConfigName(frame, scope); }