Converts a java.lang.reflect.Method or java.lang.reflect.Constructor object to a method ID.
See Also: Java Native Interface Specification (Oracle)