1 package net.sourceforge.phpeclipse.builder;
3 import net.sourceforge.phpeclipse.obfuscator.PHPIdentifier;
8 public class PHPIdentifierLocation extends PHPIdentifier {
9 private String fClassname;
10 private String fFilename;
12 private int fPHPDocLength;
13 private int fPHPDocOffset;
14 private String fUsage;
16 public PHPIdentifierLocation(String identifier, int type, String filename) {
17 this(identifier, type, filename, null);
20 public PHPIdentifierLocation(String identifier, int type, String filename, String classname) {
21 super(identifier, type);
23 fClassname = classname;
30 * @see java.lang.Object#equals(java.lang.Object)
32 public boolean equals(Object obj) {
33 if (!(obj instanceof PHPIdentifierLocation)) {
36 return super.equals(obj)&&fFilename.equals(((PHPIdentifierLocation)obj).fFilename);
42 public String getClassname() {
49 public String getFilename() {
56 public int getOffset() {
63 public int getPHPDocLength() {
70 public int getPHPDocOffset() {
77 public String getUsage() {
84 public void setClassname(String string) {
91 public void setFilename(String string) {
98 public void setOffset(int i) {
105 public void setPHPDocLength(int i) {
112 public void setPHPDocOffset(int i) {
119 public void setUsage(String string) {
124 * @see java.lang.Object#toString()
126 public String toString() {
127 return super.toString()+"\n"+fFilename;