All Downloads are FREE. Search and download functionalities are using the official Maven repository.

j.MemberInfo Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package j;

import com.jtransc.annotation.*;

@SuppressWarnings("unused")
@JTranscKeep
@JTranscVisible
public class MemberInfo {
	@JTranscInvisible
	public int id;
	@JTranscInvisible
	public String internalName;
	@JTranscInvisible
	public String name;
	@JTranscInvisible
	public int modifiers;
	@JTranscInvisible
	public String desc;
	@JTranscInvisible
	public String genericDesc;

	public MemberInfo(int id, String internalName, String name, int modifiers, String desc, String genericDesc) {
		this.internalName = (internalName != null) ? internalName : name;
		this.id = id;
		this.name = name;
		this.modifiers = modifiers;
		this.desc = desc;
		this.genericDesc = genericDesc;
	}

	@JTranscKeep
	@JTranscNativeName("c")
	static public MemberInfo create(int id, String internalName, String name, int modifiers, String desc, String genericDesc) {
		return new MemberInfo(id, internalName, name, modifiers, desc, genericDesc);
	}

	@JTranscKeep
	@JTranscNativeName("cl")
	static public MemberInfo[] createList(int count, int[] ids, int[] modifiers, String[] internalNames, String[] names, String[] descs, String[] genericDescs) {
		MemberInfo[] out = new MemberInfo[count];
		for (int n = 0; n < count; n++) {
			out[n] = new MemberInfo(ids[n], internalNames[n], names[n], modifiers[n], descs[n], genericDescs[n]);
		}
		return out;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy