Research Article

Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine

Algorithm 1

Definitions of JSO classes.
FooBar.java
package com.elastos.hpo.foobar;
Class FooBar{
 private String strField = “Hello”;
 native int Foo(int a, int b);
 native String Bar();
}
IFoo.java
package com.elastos.hpo.foobar;
class IFoo{
 native int Foo(int a, int b);
}
IBar.java
package com.elastos.hpo.foobar;
class IBar{
 native String Bar();
}