NewTree.java revision 1604:6f34826bbfdc
18134Skshefov/* 28134Skshefov * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 38134Skshefov * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 48134Skshefov * 58134Skshefov * This code is free software; you can redistribute it and/or modify it 68134Skshefov * under the terms of the GNU General Public License version 2 only, as 78134Skshefov * published by the Free Software Foundation. Oracle designates this 88134Skshefov * particular file as subject to the "Classpath" exception as provided 98134Skshefov * by Oracle in the LICENSE file that accompanied this code. 108134Skshefov * 118134Skshefov * This code is distributed in the hope that it will be useful, but WITHOUT 128134Skshefov * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 138134Skshefov * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 148134Skshefov * version 2 for more details (a copy is included in the LICENSE file that 158134Skshefov * accompanied this code). 168134Skshefov * 178134Skshefov * You should have received a copy of the GNU General Public License version 188134Skshefov * 2 along with this work; if not, write to the Free Software Foundation, 198134Skshefov * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 208134Skshefov * 218134Skshefov * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 228134Skshefov * or visit www.oracle.com if you need additional information or have any 2315235Sgoetz * questions. 2415235Sgoetz */ 2515235Sgoetz 268134Skshefovpackage jdk.nashorn.api.tree; 278134Skshefov 288134Skshefov/** 298134Skshefov * A tree node to declare a new instance of a class. 308134Skshefov * 318134Skshefov * For example: 328134Skshefov * <pre> 338134Skshefov * new <em>identifier</em> ( ) 348134Skshefov * 358134Skshefov * new <em>identifier</em> ( <em>arguments</em> ) 368134Skshefov * </pre> 378134Skshefov * 388134Skshefov * @since 9 398134Skshefov */ 408134Skshefovpublic interface NewTree extends ExpressionTree { 418134Skshefov /** 428134Skshefov * Returns the constructor expression of this 'new' expression. 438134Skshefov * 448134Skshefov * @return the constructor expression of this 'new' expression 458134Skshefov */ 468134Skshefov ExpressionTree getConstructorExpression(); 478134Skshefov} 488134Skshefov