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

de.tla2b.config.TLCValueNode Maven / Gradle / Ivy

The newest version!
package de.tla2b.config;

import de.tla2b.global.TranslationGlobals;
import de.tla2b.types.TLAType;
import tla2sany.semantic.AbortException;
import tla2sany.semantic.NumeralNode;
import tla2sany.st.TreeNode;
import tlc2.value.impl.Value;

public class TLCValueNode extends NumeralNode implements TranslationGlobals {

	private final Value value;
	private final TLAType type;

	public TLCValueNode(ValueObj valObj, TreeNode stn) throws AbortException {
		super("1337", stn);
		this.value = valObj.getValue();
		this.type = valObj.getType();
	}

	public String toString2() {
		return "\n*TLCValueNode: Value: '"
			+ value.toString() + "'";

	}

	public TLAType getType() {
		return type;
	}

	public Value getValue() {
		return value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy