prompto.runtime.LinkedVariable Maven / Gradle / Ivy
The newest version!
package prompto.runtime;
import prompto.grammar.INamed;
import prompto.grammar.INamedInstance;
import prompto.grammar.Identifier;
import prompto.type.IType;
/* used for downcast */
public class LinkedVariable implements INamedInstance {
IType type;
INamed linked;
public LinkedVariable(IType type, INamed linked) {
this.type = type;
this.linked = linked;
}
@Override
public Identifier getId() {
return linked.getId();
}
@Override
public IType getType(Context context) {
return type;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy