X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java index 237ce92..e7ed112 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java @@ -52,19 +52,38 @@ public abstract class AstNode { /** * Get the variables from outside (parameters, globals ...) - * @return the variables from outside */ - public abstract List getOutsideVariable(); + public abstract void getOutsideVariable(List list); /** * get the modified variables. - * @return the variables modified */ - public abstract List getModifiedVariable(); + public abstract void getModifiedVariable(List list); /** * Get the variables used. - * @return the variables used */ - public abstract List getUsedVariable(); + public abstract void getUsedVariable(List list); + + /** + * This method will analyze the code. + * by default it will do nothing + */ + public void analyzeCode() { + } + + /** + * Check if the array array contains the object o + * @param array an array + * @param o an obejct + * @return true if the array contained the object o + */ + public boolean arrayContains(Object[] array, Object o) { + for (int i = 0; i < array.length; i++) { + if (array[i].equals(o)) { + return true; + } + } + return false; + } }