Rewritten Parser/Scanner to package net.sourceforge.phpdt.internal.compiler.parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / PHPFunctionDeclaration.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 /**
8  * A function declaration.
9  * @author khartlage
10  */
11 public class PHPFunctionDeclaration extends PHPSegmentWithChildren {
12
13   /**
14    * Create a function declaration.
15    * @param parent the parent object (it should be a php class)
16    * @param name the name of the function
17    * @param index where the function is in the file
18    */
19   public PHPFunctionDeclaration(Object parent, String name, int index) {
20     super(parent, name, index);
21   }
22   
23   /**
24    * Get the image of a class.
25    * @return the image that represents a php class
26    */
27   public ImageDescriptor getImage() {
28     return PHPUiImages.DESC_FUN;
29   }
30 }