1 package net.sourceforge.phpeclipse.builder;
3 import net.sourceforge.phpeclipse.mover.obfuscator.PHPIdentifier;
9 public class PHPIdentifierLocation extends PHPIdentifier {
10 private String fClassname;
11 private String fFilename;
13 private int fPHPDocLength;
14 private int fPHPDocOffset;
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;
29 * @see java.lang.Object#equals(java.lang.Object)
31 public boolean equals(Object obj) {
32 if (!(obj instanceof PHPIdentifierLocation)) {
35 return super.equals(obj)&&fFilename.equals(((PHPIdentifierLocation)obj).fFilename);
41 public String getClassname() {
48 public String getFilename() {
55 public int getOffset() {
62 public int getPHPDocLength() {
69 public int getPHPDocOffset() {
76 public void setClassname(String string) {
83 public void setFilename(String string) {
90 public void setOffset(int i) {
97 public void setPHPDocLength(int i) {
104 public void setPHPDocOffset(int i) {
109 * @see java.lang.Object#toString()
111 public String toString() {
112 return super.toString()+"\n"+fFilename;