ThrowTree.java revision 1590:1916a2c680d8
126236Swpaul/*
226236Swpaul * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
326236Swpaul * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
426236Swpaul *
526236Swpaul * This code is free software; you can redistribute it and/or modify it
626236Swpaul * under the terms of the GNU General Public License version 2 only, as
726236Swpaul * published by the Free Software Foundation.  Oracle designates this
826236Swpaul * particular file as subject to the "Classpath" exception as provided
926236Swpaul * by Oracle in the LICENSE file that accompanied this code.
1026236Swpaul *
1126236Swpaul * This code is distributed in the hope that it will be useful, but WITHOUT
1226236Swpaul * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1326236Swpaul * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1426236Swpaul * version 2 for more details (a copy is included in the LICENSE file that
1526236Swpaul * accompanied this code).
1626236Swpaul *
1726236Swpaul * You should have received a copy of the GNU General Public License version
1826236Swpaul * 2 along with this work; if not, write to the Free Software Foundation,
1926236Swpaul * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2026236Swpaul *
2126236Swpaul * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2226236Swpaul * or visit www.oracle.com if you need additional information or have any
2326236Swpaul * questions.
2426236Swpaul */
2526236Swpaul
2626236Swpaulpackage jdk.nashorn.api.tree;
2726236Swpaul
2826236Swpaul/**
2926236Swpaul * A tree node for a 'throw' statement.
3026236Swpaul *
3126236Swpaul * For example:
3226236Swpaul * <pre>
33114601Sobrien *   throw <em>expression</em>;
34114601Sobrien * </pre>
3530378Scharnier *
3626236Swpaul * @since 1.9
3726236Swpaul */
38228679Sdimpublic interface ThrowTree extends StatementTree {
3926236Swpaul    /**
40129658Sstefanf     * Returns the expression being thrown.
4126236Swpaul     *
4226236Swpaul     * @return the expression being thrown.
4326236Swpaul     */
4426236Swpaul    ExpressionTree getExpression();
4526236Swpaul}
4626236Swpaul