Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / CastExpression.java
index 65e8268..8b52822 100644 (file)
@@ -6,13 +6,13 @@ import java.util.List;
  * This is a cast expression.
  * @author Matthieu Casanova
  */
-public class CastExpression extends Expression {
+public final class CastExpression extends Expression {
 
   /** The type in which we cast the expression. */
-  public ConstantIdentifier type;
+  private final ConstantIdentifier type;
 
   /** The expression to be casted. */
-  public Expression expression;
+  private final Expression expression;
 
   /**
    * Create a cast expression.
@@ -44,12 +44,15 @@ public class CastExpression extends Expression {
 
   /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
-  public void getOutsideVariable(final List list) {
-  }
+  public void getOutsideVariable(final List list) {}
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
   public void getModifiedVariable(final List list) {
     expression.getModifiedVariable(list);
@@ -57,6 +60,8 @@ public class CastExpression extends Expression {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
   public void getUsedVariable(final List list) {
     expression.getUsedVariable(list);