package net.sourceforge.phpdt.internal.compiler.ast;
-import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-
import java.util.List;
-import java.util.ArrayList;
/**
* A Variable assignation.
* $varname = initializer
* @author Matthieu Casanova
*/
-public class VarAssignation extends Expression {
+public final class VarAssignation extends Expression {
public static final int EQUAL = 0;
public static final int PLUS_EQUAL = 1;
public static final int LSHIFT_EQUAL = 11;
public static final int RSIGNEDSHIFT_EQUAL = 12;
- public Expression variableName;
- public Expression initializer;
- public int operator;
+ public final Expression variableName;
+ public final Expression initializer;
+ public final int operator;
/**
* Create a new variable assignation.
* Return the operator as String.
* @return the operator
*/
- public final String operatorToString() {
+ public String operatorToString() {
switch (operator) {
case EQUAL:
return "="; //$NON-NLS-1$