/*******************************************************************************
* Copyright (c) 2009 University of Edinburgh.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the BSD Licence, which accompanies this feature
* and can be downloaded from http://groups.inf.ed.ac.uk/pepa/update/licence.txt
******************************************************************************/
package uk.ac.ed.inf.biopepa.core.dom;
import uk.ac.ed.inf.biopepa.core.BioPEPAException;
/**
* A statement wrapping an expression, useful to represent the system equation.
*
* @author mtribast
*
*/
public class ExpressionStatement extends Statement {
private Expression expression;
/**
* @return the expression
*/
public Expression getExpression() {
return expression;
}
/**
* @param expression
* the expression to set
*/
public void setExpression(Expression expression) {
this.expression = expression;
}
ExpressionStatement(AST ast) {
super(ast);
}
/*
* (non-Javadoc)
*
* @see
* uk.ac.ed.inf.biopepa.core.dom.ASTNode#accept(uk.ac.ed.inf.biopepa.core
* .dom.ASTVisitor)
*/
@Override
public void accept(ASTVisitor visitor) throws BioPEPAException {
visitor.visit(this);
}
}