UnaryTree.java revision 2571:10fc81ac75b4
1218792Snp/* 2218792Snp * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. 3218792Snp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4218792Snp * 5218792Snp * This code is free software; you can redistribute it and/or modify it 6218792Snp * under the terms of the GNU General Public License version 2 only, as 7218792Snp * published by the Free Software Foundation. Oracle designates this 8218792Snp * particular file as subject to the "Classpath" exception as provided 9218792Snp * by Oracle in the LICENSE file that accompanied this code. 10218792Snp * 11218792Snp * This code is distributed in the hope that it will be useful, but WITHOUT 12218792Snp * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13218792Snp * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14218792Snp * version 2 for more details (a copy is included in the LICENSE file that 15218792Snp * accompanied this code). 16218792Snp * 17218792Snp * You should have received a copy of the GNU General Public License version 18218792Snp * 2 along with this work; if not, write to the Free Software Foundation, 19218792Snp * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20218792Snp * 21218792Snp * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22218792Snp * or visit www.oracle.com if you need additional information or have any 23218792Snp * questions. 24218792Snp */ 25218792Snp 26218792Snppackage com.sun.source.tree; 27218792Snp 28218792Snp/** 29218792Snp * A tree node for postfix and unary expressions. 30218792Snp * Use {@link #getKind getKind} to determine the kind of operator. 31218792Snp * 32237819Snp * For example: 33218792Snp * <pre> 34218792Snp * <em>operator</em> <em>expression</em> 35218792Snp * 36218792Snp * <em>expression</em> <em>operator</em> 37218792Snp * </pre> 38218792Snp * 39218792Snp * @jls sections 15.14 and 15.15 40219286Snp * 41219286Snp * @author Peter von der Ahé 42219286Snp * @author Jonathan Gibbons 43218792Snp * @since 1.6 44218792Snp */ 45218792Snp@jdk.Exported 46218792Snppublic interface UnaryTree extends ExpressionTree { 47218792Snp /** 48219436Snp * Returns the expression that is the operand of the unary operator. 49218792Snp * @return the expression 50218792Snp */ 51218792Snp ExpressionTree getExpression(); 52218792Snp} 53218792Snp