Android Open Source - non Language






From Project

Back to project page non.

License

The source code is released under:

MIT License

If you think the Android project non listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package non.languages;
/*from ww w .j  av  a2 s .  c  o  m*/
import non.Non;
import java.util.HashMap;
import com.badlogic.gdx.utils.reflect.ClassReflection;

public abstract class Language {
    public abstract String extension();
    public abstract String version();
    public abstract Object invoke(String object, String method, Object... args);
    public abstract Object eval(String script);
    public abstract Object convert(Object javaValue);
    public abstract Object get(String key);
    public abstract void put(String key, Object value);
    
    public static Language init(String name) {
        Non.log(Non.TAG, "Loading language " + name);
        Language r = null;
        try {
            r = (Language)ClassReflection.newInstance(ClassReflection.forName("non.languages." + name));
            Non.log(Non.TAG, "> version - " + r.version());
            Non.log(Non.TAG, "> extension - " + r.extension());
        } catch (Exception e) {
            Non.error(Non.TAG, Non.E_LANGUAGE + name);
            Non.quit();
        }
        
        return r;
    }
}




Java Source Code List

%PACKAGE%.android.AndroidLauncher.java
%PACKAGE%.desktop.DesktopLauncher.java
%PACKAGE%.ios.IOSLauncher.java
launcher.Main.java
non.InputHandle.java
non.Line.java
non.NonBuffer.java
non.Non.java
non.Quad.java
non.languages.Language.java
non.languages.javascript.java
non.languages.lua.java
non.plugins.Plugin.java
non.plugins.audio.java
non.plugins.graphics.java
non.plugins.input.java
non.plugins.lights.java
non.plugins.math.java
non.plugins.network.java
non.plugins.non.java
non.plugins.physics.java