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

com.dragome.compiler.ast.ConditionalExpression Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
package com.dragome.compiler.ast;

import com.dragome.compiler.generators.AbstractVisitor;

public class ConditionalExpression extends Expression
{

	private Expression conditionExpression= null;

	private Expression thenExpression= null;

	private Expression elseExpression= null;

	public void visit(AbstractVisitor visitor)
	{
		visitor.visit(this);
	}

	public Expression getConditionExpression()
	{
		return conditionExpression;
	}

	public void setConditionExpression(Expression theConditionExpression)
	{
		widen(theConditionExpression);
		conditionExpression= theConditionExpression;
	}

	public Expression getElseExpression()
	{
		return elseExpression;
	}

	public void setElseExpression(Expression theElseExpression)
	{
		widen(theElseExpression);
		elseExpression= theElseExpression;
	}

	public Expression getThenExpression()
	{
		return thenExpression;
	}

	public void setThenExpression(Expression theThenExpression)
	{
		widen(theThenExpression);
		thenExpression= theThenExpression;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy