001: /*
002: * Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025: /*
026: * COMPONENT_NAME: idl.parser
027: *
028: * ORIGINS: 27
029: *
030: * Licensed Materials - Property of IBM
031: * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999
032: * RMI-IIOP v1.0
033: *
034: * @(#)ExprFactory.java 1.21 07/05/05
035: */
036:
037: package com.sun.tools.corba.se.idl.constExpr;
038:
039: // NOTES:
040:
041: import com.sun.tools.corba.se.idl.ConstEntry;
042: import java.math.BigInteger;
043:
044: public interface ExprFactory {
045: And and(Expression left, Expression right);
046:
047: BooleanAnd booleanAnd(Expression left, Expression right);
048:
049: BooleanNot booleanNot(Expression operand);
050:
051: BooleanOr booleanOr(Expression left, Expression right);
052:
053: Divide divide(Expression left, Expression right);
054:
055: Equal equal(Expression left, Expression right);
056:
057: GreaterEqual greaterEqual(Expression left, Expression right);
058:
059: GreaterThan greaterThan(Expression left, Expression right);
060:
061: LessEqual lessEqual(Expression left, Expression right);
062:
063: LessThan lessThan(Expression left, Expression right);
064:
065: Minus minus(Expression left, Expression right);
066:
067: Modulo modulo(Expression left, Expression right);
068:
069: Negative negative(Expression operand);
070:
071: Not not(Expression operand);
072:
073: NotEqual notEqual(Expression left, Expression right);
074:
075: Or or(Expression left, Expression right);
076:
077: Plus plus(Expression left, Expression right);
078:
079: Positive positive(Expression operand);
080:
081: ShiftLeft shiftLeft(Expression left, Expression right);
082:
083: ShiftRight shiftRight(Expression left, Expression right);
084:
085: Terminal terminal(String representation, Character charValue,
086: boolean isWide);
087:
088: Terminal terminal(String representation, Boolean booleanValue);
089:
090: //daz Terminal terminal (String representation, Long longValue);
091: Terminal terminal(String representation, Double doubleValue);
092:
093: Terminal terminal(String representation, BigInteger bigIntegerValue);
094:
095: Terminal terminal(String stringValue, boolean isWide);
096:
097: Terminal terminal(ConstEntry constReference);
098:
099: Times times(Expression left, Expression right);
100:
101: Xor xor(Expression left, Expression right);
102: } // interface ExprFactory
|