/*******************************************************************************
- * 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();}
/**
//the non zero entries of all tables
/*
- org.eclipse.jdt.internal.compiler.ast.
+ net.sourceforge.phpdt.internal.compiler.ast.
OperatorExpression.generateTableTestCase();
*/
"\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$
};
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(){