Class ExpressionStatement

  • Direct Known Subclasses:
    ExpressionStatement, ExpressionStatement

    public class ExpressionStatement
    extends java.lang.Object
    Represents a statement which contains just of an expression.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • ExpressionStatement

        public ExpressionStatement​(Expression expression)
        Creates an expression statement.
        Parameters:
        expression - the expression
    • Method Detail

      • getExpression

        public Expression getExpression()
        Returns the expression.
        Returns:
        the expression
      • accept

        public java.lang.Object accept​(IVisitor visitor)
                                throws VilException
        Accepts the given visitor for visiting this instance.
        Parameters:
        visitor - the visitor
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • applyConversionTo

        public void applyConversionTo​(OperationDescriptor op)
                               throws VilException
        Changes this statement by applying a conversion operation to expression.
        Parameters:
        op - the conversion operation
        Throws:
        VilException - in case that applying the conversion fails