Class OpMethodUtils


  • public final class OpMethodUtils
    extends Object
    Common code used by Ops backed by Methods.
    Author:
    Gabriel Selzer
    • Method Detail

      • getOpMethodType

        public static Type getOpMethodType​(Class<?> opClass,
                                           Method opMethod)
      • getOpParamTypes

        public static Type[] getOpParamTypes​(Parameter[] methodParams)
      • createOpInstance

        public static StructInstance<?> createOpInstance​(OpInfo info,
                                                         Method method,
                                                         List<?> dependencies)
        Converts an OpInfo backed by a Method reference into an Op, given a list of its dependencies.
        Parameters:
        info - the OpInfo
        method - the Method containing the Op code
        dependencies - all Op dependencies required to execute the Op
        Returns:
        a StructInstance