Package org.robovm.compiler
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 Summary
Constructors Constructor Description Mangler() -
Method Summary
Modifier and Type Method Description static StringmangleNativeMethod(String owner, String name)Returns the short version of the JNI function name for a method.static StringmangleNativeMethod(String owner, String name, String desc)Returns the long version of the JNI function name for a method.
-
Constructor Details
-
Mangler
public Mangler()
-
-
Method Details
-
mangleNativeMethod
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
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.
-