325N/A/*
325N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
325N/A *
325N/A * This code is free software; you can redistribute it and/or modify it
325N/A * under the terms of the GNU General Public License version 2 only, as
325N/A * published by the Free Software Foundation. Oracle designates this
325N/A * particular file as subject to the "Classpath" exception as provided
325N/A * by Oracle in the LICENSE file that accompanied this code.
325N/A *
325N/A * This code is distributed in the hope that it will be useful, but WITHOUT
325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
325N/A * version 2 for more details (a copy is included in the LICENSE file that
325N/A * accompanied this code).
325N/A *
325N/A * You should have received a copy of the GNU General Public License version
325N/A * 2 along with this work; if not, write to the Free Software Foundation,
325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
325N/A *
325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
325N/A * or visit www.oracle.com if you need additional information or have any
325N/A * questions.
325N/A */
325N/A
325N/Apackage com.sun.codemodel.internal;
325N/A
325N/A/**
325N/A * Provides default implementations for {@link JExpression}.
325N/A */
325N/Apublic abstract class JExpressionImpl implements JExpression
325N/A{
325N/A //
325N/A //
325N/A // from JOp
325N/A //
325N/A //
325N/A public final JExpression minus() {
325N/A return JOp.minus(this);
325N/A }
325N/A
325N/A /**
325N/A * Logical not <tt>'!x'</tt>.
325N/A */
325N/A public final JExpression not() {
325N/A return JOp.not(this);
325N/A }
325N/A
325N/A public final JExpression complement() {
325N/A return JOp.complement(this);
325N/A }
325N/A
325N/A public final JExpression incr() {
325N/A return JOp.incr(this);
325N/A }
325N/A
325N/A public final JExpression decr() {
325N/A return JOp.decr(this);
325N/A }
325N/A
325N/A public final JExpression plus(JExpression right) {
325N/A return JOp.plus(this, right);
325N/A }
325N/A
325N/A public final JExpression minus(JExpression right) {
325N/A return JOp.minus(this, right);
325N/A }
325N/A
325N/A public final JExpression mul(JExpression right) {
325N/A return JOp.mul(this, right);
325N/A }
325N/A
325N/A public final JExpression div(JExpression right) {
325N/A return JOp.div(this, right);
325N/A }
325N/A
325N/A public final JExpression mod(JExpression right) {
325N/A return JOp.mod(this, right);
325N/A }
325N/A
325N/A public final JExpression shl(JExpression right) {
325N/A return JOp.shl(this, right);
325N/A }
325N/A
325N/A public final JExpression shr(JExpression right) {
325N/A return JOp.shr(this, right);
325N/A }
325N/A
325N/A public final JExpression shrz(JExpression right) {
325N/A return JOp.shrz(this, right);
325N/A }
325N/A
325N/A public final JExpression band(JExpression right) {
325N/A return JOp.band(this, right);
325N/A }
325N/A
325N/A public final JExpression bor(JExpression right) {
325N/A return JOp.bor(this, right);
325N/A }
325N/A
325N/A public final JExpression cand(JExpression right) {
325N/A return JOp.cand(this, right);
325N/A }
325N/A
325N/A public final JExpression cor(JExpression right) {
325N/A return JOp.cor(this, right);
325N/A }
325N/A
325N/A public final JExpression xor(JExpression right) {
325N/A return JOp.xor(this, right);
325N/A }
325N/A
325N/A public final JExpression lt(JExpression right) {
325N/A return JOp.lt(this, right);
325N/A }
325N/A
325N/A public final JExpression lte(JExpression right) {
325N/A return JOp.lte(this, right);
325N/A }
325N/A
325N/A public final JExpression gt(JExpression right) {
325N/A return JOp.gt(this, right);
325N/A }
325N/A
325N/A public final JExpression gte(JExpression right) {
325N/A return JOp.gte(this, right);
325N/A }
325N/A
325N/A public final JExpression eq(JExpression right) {
325N/A return JOp.eq(this, right);
325N/A }
325N/A
325N/A public final JExpression ne(JExpression right) {
325N/A return JOp.ne(this, right);
325N/A }
325N/A
325N/A public final JExpression _instanceof(JType right) {
325N/A return JOp._instanceof(this, right);
325N/A }
325N/A
325N/A //
325N/A //
325N/A // from JExpr
325N/A //
325N/A //
325N/A public final JInvocation invoke(JMethod method) {
325N/A return JExpr.invoke(this, method);
325N/A }
325N/A
325N/A public final JInvocation invoke(String method) {
325N/A return JExpr.invoke(this, method);
325N/A }
325N/A
325N/A public final JFieldRef ref(JVar field) {
325N/A return JExpr.ref(this, field);
325N/A }
325N/A
325N/A public final JFieldRef ref(String field) {
325N/A return JExpr.ref(this, field);
325N/A }
325N/A
325N/A public final JArrayCompRef component(JExpression index) {
325N/A return JExpr.component(this, index);
325N/A }
325N/A}