ExpressionStatementTree.java revision 1204:9597425b6b38
1189251Ssam/* 2189251Ssam * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3189251Ssam * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4189251Ssam * 5189251Ssam * This code is free software; you can redistribute it and/or modify it 6189251Ssam * under the terms of the GNU General Public License version 2 only, as 7189251Ssam * published by the Free Software Foundation. Oracle designates this 8189251Ssam * particular file as subject to the "Classpath" exception as provided 9189251Ssam * by Oracle in the LICENSE file that accompanied this code. 10189251Ssam * 11189251Ssam * This code is distributed in the hope that it will be useful, but WITHOUT 12189251Ssam * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13189251Ssam * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14189251Ssam * version 2 for more details (a copy is included in the LICENSE file that 15189251Ssam * accompanied this code). 16189251Ssam * 17189251Ssam * You should have received a copy of the GNU General Public License version 18189251Ssam * 2 along with this work; if not, write to the Free Software Foundation, 19189251Ssam * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20189251Ssam * 21189251Ssam * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22189251Ssam * or visit www.oracle.com if you need additional information or have any 23189251Ssam * questions. 24214734Srpaulo */ 25214734Srpaulo 26214734Srpaulopackage jdk.nashorn.api.tree; 27214734Srpaulo 28214734Srpaulo/** 29214734Srpaulo * A tree node for an expression statement. 30214734Srpaulo * 31214734Srpaulo * For example: 32214734Srpaulo * <pre> 33214734Srpaulo * <em>expression</em> ; 34214734Srpaulo * </pre> 35214734Srpaulo * 36214734Srpaulo * @since 1.9 37214734Srpaulo */ 38214734Srpaulo@jdk.Exported 39214734Srpaulopublic interface ExpressionStatementTree extends StatementTree { 40189251Ssam /** 41214734Srpaulo * Returns the expression of this expression statement. 42214734Srpaulo * 43189251Ssam * @return the expression 44214734Srpaulo */ 45214734Srpaulo ExpressionTree getExpression(); 46214734Srpaulo} 47214734Srpaulo