Class ExpressionStatement

    • Constructor Detail

      • ExpressionStatement

        ExpressionStatement()
        Constructor for serialization.
      • ExpressionStatement

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

      • accept

        public java.lang.Object accept​(IVisitor visitor)
                                throws VilException
        Description copied from interface: IBuildlangElement
        Accepts the visitor for visiting.
        Specified by:
        accept in interface IBuildlangElement
        Parameters:
        visitor - the visitor to be used
        Returns:
        the result of visiting this instance (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • setParent

        protected void setParent​(ILanguageElement parent)
        Changes the parent.
        Parameters:
        parent - the new parent