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

com.dragome.compiler.ast.SwitchStatement 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 SwitchStatement extends Block
{

	private Expression expression;

	public SwitchStatement()
	{
		super();
	}

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

	public SwitchCase getDefault()
	{
		return (SwitchCase) getLastChild();
	}

	public Expression getExpression()
	{
		return expression;
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy