X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/OperatorIds.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/OperatorIds.java index 1246180..09d6c1b 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/OperatorIds.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/OperatorIds.java @@ -1,43 +1,42 @@ -/******************************************************************************* - * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * IBM Corporation - initial API and implementation - ******************************************************************************/ package net.sourceforge.phpdt.internal.compiler.ast; +/** + * The operators used in php. + * Copied from org.eclipse.jdt.internal.compiler.ast.OperatorIds + * @author Matthieu Casanova + */ public interface OperatorIds { - public static final int AND_AND = 0; - public static final int OR_OR = 1; - public static final int AND = 2; - public static final int OR = 3; - public static final int LESS = 4; - public static final int LESS_EQUAL = 5; - public static final int GREATER = 6; - public static final int GREATER_EQUAL = 7; - public static final int XOR = 8; - public static final int DIVIDE = 9; - public static final int LEFT_SHIFT = 10; - public static final int NOT = 11; - public static final int TWIDDLE = 12; - public static final int MINUS = 13; - public static final int PLUS = 14; - public static final int MULTIPLY = 15; - public static final int REMAINDER = 16; - public static final int RIGHT_SHIFT = 17; - public static final int EQUAL_EQUAL = 18; - public static final int UNSIGNED_RIGHT_SHIFT= 19; - public static final int NumberOfTables = 20; + int AND_AND = 0; // "&&" + int OR_OR = 1; // "||" + int AND = 2; // "&" + int OR = 3; // "|" + int LESS = 4; // "<" + int LESS_EQUAL = 5; // "<=" + int GREATER = 6; // ">" + int GREATER_EQUAL = 7; // ">=" + int XOR = 8; // "^" + int DIVIDE = 9; // "/" + int LEFT_SHIFT = 10; // "<<" + int NOT = 11; // "!" + int TWIDDLE = 12; // "~" + int MINUS = 13; // "-" + int PLUS = 14; // "+" + int MULTIPLY = 15; // "*" + int REMAINDER = 16; // "%" + int RIGHT_SHIFT = 17; // ">>" + int EQUAL_EQUAL = 18; // "==" + int UNSIGNED_RIGHT_SHIFT= 19; // ">>>" + int ORL = 20; // "OR" + int ANDL = 21; // "AND" + int DOT = 22; // "." + int DIF = 23; // "<>" + int BANG_EQUAL_EQUAL = 24; // "!==" + int EQUAL_EQUAL_EQUAL = 25; // "===" + int AT = 26; // "@" - public static final int QUESTIONCOLON = 23; - - public static final int NOT_EQUAL = 29; - public static final int EQUAL = 30; - public static final int INSTANCEOF = 31; - public static final int PLUS_PLUS = 32; - public static final int MINUS_MINUS = 33; + int NOT_EQUAL = 29; // "!=" + int PLUS_PLUS = 32; // "++" + int MINUS_MINUS = 33; // "--" + int NEW = 34; // "new " + int EQUAL = 35; // "=" }