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

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

There is a newer version: 0.96-beta4
Show newest version
/**
 * Copyright by Wolfgang Kuehn 2005
 */
package com.dragome.compiler.ast;

public class ConditionalBranch extends Branch
{

	private Expression expression;

	public ConditionalBranch(int targetIndex)
	{
		super(targetIndex);
	}

	public ConditionalBranch(int theBeginIndex, int theEndIndex, int targetIndex)
	{
		super(targetIndex);
		setExpression(new Expression(theBeginIndex, theEndIndex));
	}

	public Expression getExpression()
	{
		return expression;
	}

	public void setExpression(Expression theExpression)
	{
		expression= theExpression;
		widen(theExpression);
		appendChild(theExpression);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy