2 * Created on May 15, 2003
3 *========================================================================
4 * Modifications history
5 *========================================================================
6 * $Log: not supported by cvs2svn $
7 * Revision 1.1 2004/02/26 02:25:42 agfitzp
8 * renamed packages to match xml & css
10 * Revision 1.1 2004/02/05 03:10:08 agfitzp
13 * Revision 1.1.2.1 2003/12/12 21:37:24 agfitzp
14 * Experimental work for Classes view
16 * Revision 1.2 2003/05/30 20:53:09 agfitzp
17 * 0.0.2 : Outlining is now done as the user types. Some other bug fixes.
20 *========================================================================
22 package net.sourceforge.phpeclipse.js.core.model;
24 import java.util.HashMap;
26 import org.eclipse.core.resources.IFile;
32 public class JSClassElement extends JSElement
34 protected HashMap childrenByName;
35 protected boolean isPrototype = false;
42 public JSClassElement(IFile aFile, String aName, int offset, int length)
44 super(aFile, aName, offset, length);
45 childrenByName = new HashMap();
48 public void addChildElement(JSElement anElement)
50 String elementName = anElement.getName();
51 if(!childrenByName.containsKey(elementName))
53 this.children.add(anElement);
54 this.childrenByName.put(elementName, anElement);
55 anElement.setParent(this);
67 public boolean isPrototype()
75 public void setPrototype(boolean b)