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

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

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

public class LoopStatement extends Block
{

	public LoopStatement()
	{
		super();
	}

	public LoopStatement(int theBeginIndex)
	{
		super(theBeginIndex);
	}

	public LoopStatement(int theBeginIndex, int theEndIndex)
	{
		super(theBeginIndex, theEndIndex);
	}

	public Expression getExpression()
	{
		return (Expression) getChildAt(1);
	}

	public void setExpression(Expression expression)
	{
		widen(expression);
		setChildAt(1, expression);
	}

	public Block getBlock()
	{
		return (Block) getChildAt(0);
	}

	public void setBlock(Block block)
	{
		widen(block);
		setChildAt(0, block);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy