X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ClassDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ClassDeclaration.java index 9c5bf07..000afb9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ClassDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ClassDeclaration.java @@ -3,7 +3,6 @@ package net.sourceforge.phpdt.internal.compiler.ast; import net.sourceforge.phpdt.internal.compiler.parser.Outlineable; import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren; import net.sourceforge.phpdt.internal.ui.PHPUiImages; -import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.Position; @@ -72,7 +71,7 @@ public class ClassDeclaration extends Statement implements OutlineableWithChildr position = new Position(sourceStart, name.length); } - public void add(MethodDeclaration method) { + public void addMethod(MethodDeclaration method) { methods.add(method); add(method); if (method.name.equals(name)) { @@ -80,7 +79,7 @@ public class ClassDeclaration extends Statement implements OutlineableWithChildr } } - public void add(FieldDeclaration var) { + public void addField(FieldDeclaration var) { for (int i = 0; i < var.vars.length; i++) { VariableDeclaration c = var.vars[i]; children.add(c); @@ -110,7 +109,7 @@ public class ClassDeclaration extends Statement implements OutlineableWithChildr } /** - * Return the body of the class as String + * Return the body of the class as String. * @param tab how many tabs before the body of the class * @return the body as String */ @@ -163,12 +162,11 @@ public class ClassDeclaration extends Statement implements OutlineableWithChildr } public int size() { - PHPeclipsePlugin.log(1,"class size : "+children.size()); return children.size(); } public String toString() { - final StringBuffer buff = new StringBuffer(new String(name));//$NON-NLS-1$ + final StringBuffer buff = new StringBuffer(new String(name)); if (superclass != null) { buff.append(":"); //$NON-NLS-1$ buff.append(superclass);