1 package net.sourceforge.phpeclipse.builder;
3 import net.sourceforge.phpeclipse.obfuscator.PHPIdentifier;
9 public class PHPIdentifierLocation extends PHPIdentifier {
10 private String fClassname;
11 private String fFilename;
13 private int fPHPDocLength;
14 private int fPHPDocOffset;
15 private String fUsage;
17 public PHPIdentifierLocation(String identifier, int type, String filename) {
18 this(identifier, type, filename, null);
21 public PHPIdentifierLocation(String identifier, int type, String filename, String classname) {
22 super(identifier, type);
24 fClassname = classname;
31 * @see java.lang.Object#equals(java.lang.Object)
33 public boolean equals(Object obj) {
34 if (!(obj instanceof PHPIdentifierLocation)) {
37 return super.equals(obj)&&fFilename.equals(((PHPIdentifierLocation)obj).fFilename);
43 public String getClassname() {
50 public String getFilename() {
57 public int getOffset() {
64 public int getPHPDocLength() {
71 public int getPHPDocOffset() {
78 public String getUsage() {
85 public void setClassname(String string) {
92 public void setFilename(String string) {
99 public void setOffset(int i) {
106 public void setPHPDocLength(int i) {
113 public void setPHPDocOffset(int i) {
120 public void setUsage(String string) {
125 * @see java.lang.Object#toString()
127 public String toString() {
128 return super.toString()+"\n"+fFilename;