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

prompto.debug.variable.WorkerVariable Maven / Gradle / Ivy

The newest version!
package prompto.debug.variable;

import prompto.debug.value.IValue;
import prompto.debug.value.WorkerValue;
import prompto.grammar.INamed;
import prompto.runtime.Context;

public class WorkerVariable implements IVariable {

	Context context;
	INamed named;
	IValue value;
	
	public WorkerVariable(Context context, INamed named) {
		this.context = context;
		this.named = named;
	}
	
	@Override
	public String getName() {
		return named.getName();
	}
	
	@Override
	public String getTypeName() {
		return named.getType(context).getTypeName();
	}
	
	@Override
	public IValue getValue() {
		if(value==null)
			value = new WorkerValue(context, named);
		return value;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy