public class AnnotationHelper
extends java.lang.Object
AnnotationBinder
Modifier and Type | Method and Description |
---|---|
static void |
addMethodNamesToMap(java.util.Map<java.lang.String,JRubyMethod> map,
JRubyMethod jrubyMethod,
java.lang.String simpleName) |
static void |
addMethodNamesToMap(java.util.Map<java.lang.String,JRubyMethod> map,
JRubyMethod anno,
java.lang.String simpleName,
java.lang.String[] names,
java.lang.String[] aliases) |
static int |
getArityValue(JRubyMethod anno,
int actualRequired) |
static java.lang.String |
getCallConfigName(boolean frame,
boolean scope)
Given a frame and scope requirement, return the name of the appropriate CallConfiguration.
|
static java.lang.String |
getCallerCallConfigNameByAnno(JRubyMethod jrubyMethod)
Produce a CallConfiguration name that represents what *caller* methods must prepare for
the method with this annotation.
|
static void |
groupFrameFields(java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> readGroups,
java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> writeGroups,
JRubyMethod anno,
java.lang.String simpleName) |
static void |
populateMethodIndex(java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> accessGroups,
java.util.function.BiConsumer<java.lang.Integer,java.lang.String> action) |
public static void addMethodNamesToMap(java.util.Map<java.lang.String,JRubyMethod> map, JRubyMethod jrubyMethod, java.lang.String simpleName)
public static void addMethodNamesToMap(java.util.Map<java.lang.String,JRubyMethod> map, JRubyMethod anno, java.lang.String simpleName, java.lang.String[] names, java.lang.String[] aliases)
public static int getArityValue(JRubyMethod anno, int actualRequired)
public static java.lang.String getCallerCallConfigNameByAnno(JRubyMethod jrubyMethod)
public static java.lang.String getCallConfigName(boolean frame, boolean scope)
public static void groupFrameFields(java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> readGroups, java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> writeGroups, JRubyMethod anno, java.lang.String simpleName)
public static void populateMethodIndex(java.util.Map<java.util.Set<FrameField>,java.util.List<java.lang.String>> accessGroups, java.util.function.BiConsumer<java.lang.Integer,java.lang.String> action)
Copyright © 2001-2018 JRuby. All Rights Reserved.