@ParametersAreNonnullByDefault
public class CoprocessorUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CoprocessorUtils.AnnotatedParameter
A parameter annotated with an annotation and its variable index and type.
|
| Constructor and Description |
|---|
CoprocessorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CoprocessorUtils.AnnotatedParameter[] |
getAnnotatedParameters(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Get all annotated parameters of a method.
|
static void |
mergeParametersToArray(org.objectweb.asm.tree.MethodNode methodNode,
CoprocessorUtils.AnnotatedParameter[] annotatedParameters)
Merge all annotated parameters into an array.
The array will be the last parameter of the method. |
@Nullable public static CoprocessorUtils.AnnotatedParameter[] getAnnotatedParameters(org.objectweb.asm.tree.MethodNode methodNode, java.lang.Class<?> annotationClass)
methodNode - The method to get the parameters fromannotationClass - The annotation class to search forpublic static void mergeParametersToArray(org.objectweb.asm.tree.MethodNode methodNode,
CoprocessorUtils.AnnotatedParameter[] annotatedParameters)
methodNode - The method to merge the parameters fromannotatedParameters - The annotated parameters to merge