b198e02b90ad8ba3bceb32a8ce40ee2a4dd7d1c8
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / PHPClassDeclaration.java
1 package net.sourceforge.phpdt.internal.compiler.parser;
2
3 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
4
5 import org.eclipse.jface.resource.ImageDescriptor;
6 /**
7  * A class declaration.
8  * @author khartlage
9  */
10 public class PHPClassDeclaration extends PHPSegmentWithChildren {
11
12   /**
13    * Create a class declaration.
14    * @param parent the parent object (it should be a php class)
15    * @param name the name of the class
16    * @param index where the class is in the file
17    */
18   public PHPClassDeclaration(Object parent, String name, int index) {
19     super(parent, name, index);
20   }
21
22   /**
23    * Get the image of a class.
24    * @return the image that represents a php class
25    */
26   public ImageDescriptor getImage() {
27     return PHPUiImages.DESC_CLASS;
28   }
29 }