WIP but mostly working Desc selector functionality

This commit is contained in:
Mumfrey committed 2021-01-31 23:00:25 +00:00
1 parent 2ef2417de6
commit 21881482ae
27 files changed
+998 -42

No files matched your search

@@ -646,6 +646,20 @@ public final class Bytecode {
}
}
/**
* Get an array of Types from an array of classes.
*
* @param classes Array of classes to convert
* @return Array of types
*/
public static Type[] getTypes(Class<?>... classes) {
Type[] types = new Type[classes.length];
for (int index = 0; index < classes.length; index++) {
types[index] = Type.getType(classes[index]);
}
return types;
}
/**
* Clones all of the labels in the source instruction list and returns the
* clones in a map of old label -&gt; new label. This is used to facilitate