Refactored packagename to net.sourceforge.phpdt.internal.compiler.ast
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / OperatorExpression.java
index 6d9b7c5..f4eb5db 100644 (file)
@@ -1,21 +1,19 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
+ * Copyright (c) 2000, 2003 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v0.5 
+ * are made available under the terms of the Common Public License v1.0
  * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
+ * http://www.eclipse.org/legal/cpl-v10.html
  * 
  * Contributors:
  *     IBM Corporation - initial API and implementation
- ******************************************************************************/
+ *******************************************************************************/
 package net.sourceforge.phpdt.internal.compiler.ast;
 
-import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
-
 public abstract class OperatorExpression extends Expression implements OperatorIds {
 
        public static int[][] ResolveTypeTables = new int[NumberOfTables][];
-       public TypeBinding typeBinding; 
+
        static {classInitialize();}
 
        /**
@@ -50,7 +48,7 @@ public abstract class OperatorExpression extends Expression implements OperatorI
                //the non zero entries of all tables
        
                /*
-               org.eclipse.jdt.internal.compiler.ast.
+               net.sourceforge.phpdt.internal.compiler.ast.
                OperatorExpression.generateTableTestCase();
                */
        
@@ -122,7 +120,7 @@ public abstract class OperatorExpression extends Expression implements OperatorI
        
                        "\t\t//TC test : all binary operation (described in tables)\n"+ //$NON-NLS-1$
                        "\t\t//method automatically generated by\n"+ //$NON-NLS-1$
-                       "\t\t//org.eclipse.jdt.internal.compiler.ast.OperatorExpression.generateTableTestCase();\n"+ //$NON-NLS-1$
+                       "\t\t//net.sourceforge.phpdt.internal.compiler.ast.OperatorExpression.generateTableTestCase();\n"+ //$NON-NLS-1$
                
                        "\t\tString str0 ;\t String str\t= "+decode.constant(T_String)+";\n"+ //$NON-NLS-1$ //$NON-NLS-2$
                        "\t\tint i0 ;\t int i\t= "+decode.constant(T_int)+" ;\n"+ //$NON-NLS-1$ //$NON-NLS-2$
@@ -1555,6 +1553,13 @@ public abstract class OperatorExpression extends Expression implements OperatorI
                };
                return "unknown operator"; //$NON-NLS-1$
        }
+       public StringBuffer printExpression(int indent, StringBuffer output){
+
+               output.append('(');
+               return printExpressionNoParenthesis(0, output).append(')');
+       }
+       
+       public abstract StringBuffer printExpressionNoParenthesis(int indent, StringBuffer output);
 
        public String toStringExpression(){