X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/obfuscator/PHPIdentifier.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/obfuscator/PHPIdentifier.java index 17dcf6d..895d942 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/obfuscator/PHPIdentifier.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/obfuscator/PHPIdentifier.java @@ -2,16 +2,18 @@ package net.sourceforge.phpeclipse.obfuscator; /** * @author khartlage - * + * */ public class PHPIdentifier { public final static int CLASS = 1; public final static int FUNCTION = 2; - public final static int METHOD = 4; public final static int VARIABLE = 3; + public final static int METHOD = 4; public final static int DEFINE = 5; - public final static int CONSTRUCTOR = 6; + public final static int CONSTRUCTOR = 6; + public final static int GLOBAL_VARIABLE = 7; + private String fIdentifier; private int fType; @@ -21,7 +23,9 @@ public class PHPIdentifier { fIdentifier = identifier; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { @@ -59,10 +63,14 @@ public class PHPIdentifier { return fType == DEFINE; } - public boolean isConstructor() { - return fType == CONSTRUCTOR; - } - + public boolean isGlobalVariable() { + return fType == GLOBAL_VARIABLE; + } + + public boolean isConstructor() { + return fType == CONSTRUCTOR; + } + public void setIdentifier(String fIdentifier) { this.fIdentifier = fIdentifier; } @@ -71,15 +79,17 @@ public class PHPIdentifier { this.fType = fType; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see java.lang.Object#toString() */ public String toString() { switch (fType) { case CLASS : return "class - "; - case CONSTRUCTOR : - return "constructor - "; + case CONSTRUCTOR : + return "constructor - "; case DEFINE : return "define - "; case FUNCTION : @@ -92,4 +102,4 @@ public class PHPIdentifier { return ""; } -} +} \ No newline at end of file