1 package net.sourceforge.phpeclipse.mover.obfuscator;
7 public class PHPIdentifier {
9 public final static int CLASS = 1;
10 public final static int FUNCTION = 2;
11 public final static int VARIABLE = 3;
12 public final static int METHOD = 4;
15 private String fIdentifier;
17 public PHPIdentifier(String identifier, int type) {
19 fIdentifier = identifier;
22 public boolean isClass() {
23 return fType == CLASS;
26 public boolean isFuncton() {
27 return fType == FUNCTION;
30 public boolean isVariable() {
31 return fType == VARIABLE;
34 public void setType(int fType) {
38 public int getType() {
42 public void setIdentifier(String fIdentifier) {
43 this.fIdentifier = fIdentifier;
46 public String getIdentifier() {
51 * @see java.lang.Object#equals(java.lang.Object)
53 public boolean equals(Object obj) {
54 if (!(obj instanceof PHPIdentifier)) {
57 return ((PHPIdentifier) obj).fType == fType &&
58 ((PHPIdentifier) obj).fIdentifier.equals(fIdentifier);