AssignmentTree.java revision 1590:1916a2c680d8
11573Srgrimes/* 21573Srgrimes * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 31573Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41573Srgrimes * 51573Srgrimes * This code is free software; you can redistribute it and/or modify it 61573Srgrimes * under the terms of the GNU General Public License version 2 only, as 71573Srgrimes * published by the Free Software Foundation. Oracle designates this 81573Srgrimes * particular file as subject to the "Classpath" exception as provided 91573Srgrimes * by Oracle in the LICENSE file that accompanied this code. 101573Srgrimes * 111573Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 121573Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 131573Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 141573Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 151573Srgrimes * accompanied this code). 16249808Semaste * 171573Srgrimes * You should have received a copy of the GNU General Public License version 181573Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 191573Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 201573Srgrimes * 211573Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 221573Srgrimes * or visit www.oracle.com if you need additional information or have any 231573Srgrimes * questions. 241573Srgrimes */ 251573Srgrimes 261573Srgrimespackage jdk.nashorn.api.tree; 271573Srgrimes 281573Srgrimes/** 291573Srgrimes * A tree node for an assignment expression. 301573Srgrimes * 311573Srgrimes * For example: 321573Srgrimes * <pre> 331573Srgrimes * <em>variable</em> = <em>expression</em> 341573Srgrimes * </pre> 351573Srgrimes * 3692986Sobrien * @since 1.9 3792986Sobrien */ 381573Srgrimespublic interface AssignmentTree extends ExpressionTree { 3971579Sdeischen /** 401573Srgrimes * Returns the left hand side (LHS) of this assignment. 411573Srgrimes * 421573Srgrimes * @return left hand side (LHS) expression 431573Srgrimes */ 441573Srgrimes ExpressionTree getVariable(); 45176629Sjhb 4671579Sdeischen /** 471573Srgrimes * Returns the right hand side (RHS) of this assignment. 481573Srgrimes * 491573Srgrimes * @return right hand side (RHS) expression 50249810Semaste */ 511573Srgrimes ExpressionTree getExpression(); 5292889Sobrien} 531573Srgrimes