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

prompto.runtime.Variable Maven / Gradle / Ivy

The newest version!
package prompto.runtime;

import prompto.grammar.INamedInstance;
import prompto.grammar.Identifier;
import prompto.type.IType;

public class Variable implements INamedInstance {

	Identifier name;
	IType type;
	
	public Variable(Identifier name, IType type) {
		this.name = name;
		this.type = type;
	}

	@Override
	public String toString() {
		return name.toString();
	}
	
	@Override
	public Identifier getId() {
		return name;
	}

	@Override
	public IType getType(Context context) {
		return type;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy