PHP obfuscator gets it's ignored identifiers from an "obfuscator.xml" file
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / mover / obfuscator / PHPIdentifier.java
1 package net.sourceforge.phpeclipse.mover.obfuscator;
2
3 /**
4  * @author khartlage
5  *
6  * To change this generated comment edit the template variable "typecomment":
7  * Window>Preferences>Java>ObfuscatorIgnores.
8  * To enable and disable the creation of type comments go to
9  * Window>Preferences>Java>Code Generation.
10  */
11 public class PHPIdentifier {
12   
13   public final static int CLASS = 1;
14   public final static int FUNCTION = 2;
15   public final static int VARIABLE = 3;
16   
17   private int fType;
18   private String fIdentifier;
19   
20   public PHPIdentifier(String identifier, int type) {
21     fType = type;
22     fIdentifier = identifier;
23   }
24
25   public boolean isClass() {
26     return fType == CLASS;
27   }
28   
29   public boolean isFuncton() {
30     return fType == FUNCTION;
31   }
32   
33   public boolean isVariable() {
34     return fType == VARIABLE;
35   }
36   
37   public void setType(int fType) {
38     this.fType = fType;
39   }
40
41   public int getType() {
42     return fType;
43   }
44
45   public void setIdentifier(String fIdentifier) {
46     this.fIdentifier = fIdentifier;
47   }
48
49   public String getIdentifier() {
50     return fIdentifier;
51   }
52   
53 }