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 METHOD = 4;
12 public final static int VARIABLE = 3;
13 public final static int DEFINE = 5;
14 private String fIdentifier;
18 public PHPIdentifier(String identifier, int type) {
20 fIdentifier = identifier;
24 * @see java.lang.Object#equals(java.lang.Object)
26 public boolean equals(Object obj) {
27 if (!(obj instanceof PHPIdentifier)) {
30 return ((PHPIdentifier) obj).fType == fType && ((PHPIdentifier) obj).fIdentifier.equals(fIdentifier);
33 public String getIdentifier() {
37 public int getType() {
41 public boolean isClass() {
42 return fType == CLASS;
45 public boolean isFuncton() {
46 return fType == FUNCTION;
49 public boolean isVariable() {
50 return fType == VARIABLE;
53 public boolean isMethod() {
54 return fType == METHOD;
57 public boolean isDefine() {
58 return fType == DEFINE;
61 public void setIdentifier(String fIdentifier) {
62 this.fIdentifier = fIdentifier;
65 public void setType(int fType) {
70 * @see java.lang.Object#toString()
72 public String toString() {