*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / mover / obfuscator / PHPIdentifier.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/mover/obfuscator/PHPIdentifier.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/mover/obfuscator/PHPIdentifier.java
new file mode 100644 (file)
index 0000000..1f391dd
--- /dev/null
@@ -0,0 +1,53 @@
+package net.sourceforge.phpeclipse.mover.obfuscator;
+
+/**
+ * @author khartlage
+ *
+ * To change this generated comment edit the template variable "typecomment":
+ * Window>Preferences>Java>Templates.
+ * To enable and disable the creation of type comments go to
+ * Window>Preferences>Java>Code Generation.
+ */
+public class PHPIdentifier {
+  
+  public final static int CLASS = 1;
+  public final static int FUNCTION = 2;
+  public final static int VARIABLE = 3;
+  
+  private int fType;
+  private String fIdentifier;
+  
+  public PHPIdentifier(String identifier, int type) {
+    fType = type;
+    fIdentifier = identifier;
+  }
+
+  public boolean isClass() {
+    return fType == CLASS;
+  }
+  
+  public boolean isFuncton() {
+    return fType == FUNCTION;
+  }
+  
+  public boolean isVariable() {
+    return fType == VARIABLE;
+  }
+  
+  public void setType(int fType) {
+    this.fType = fType;
+  }
+
+  public int getType() {
+    return fType;
+  }
+
+  public void setIdentifier(String fIdentifier) {
+    this.fIdentifier = fIdentifier;
+  }
+
+  public String getIdentifier() {
+    return fIdentifier;
+  }
+  
+}