Class Mangler

java.lang.Object
org.robovm.compiler.Mangler

public class Mangler
extends Object
Mangles native method signatures into short and long JNI function names. See {@link http://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/design.html#resolving_native_method_names} for how a VM resolves JNI functions.
  • Constructor Details

    • Mangler

      public Mangler()
  • Method Details

    • mangleNativeMethod

      public static String mangleNativeMethod​(String owner, String name)
      Returns the short version of the JNI function name for a method.
      Parameters:
      owner - the internal name of the class of the method.
      name - the name of the method.
    • mangleNativeMethod

      public static String mangleNativeMethod​(String owner, String name, String desc)
      Returns the long version of the JNI function name for a method.
      Parameters:
      owner - the internal name of the class of the method.
      name - the name of the method.
      desc - the method descriptor.